using System.Collections; using System.Collections.Generic; using UnityEngine; public class testCeshi : MonoBehaviour { private int allm = 73; private int ewai = 10; private int cun=20; private float lixi=0.04f; private int nian=5; // Start is called before the first frame update void Start() { float now = allm-20; float all = now; float wuall = now; for (int i = 0; i < nian; i++) { wuall += cun; all += cun; all = all+ (all * lixi); } all = ewai * nian + all; wuall = ewai * nian + wuall; float erwai2 = 20-160; all += erwai2; wuall += erwai2; Debug.Log(all); Debug.Log(wuall); } // Update is called once per frame void Update() { } }