示例#1
0
    // Use this for initialization
    public void CountEverything()
    {
        Debug.Log("Run awake");

        cRun = GM.currentRun;

        if (GM.currentRun == null)
        {
            return;
        }

        juicyCount.text   = cRun.juicy.ToString();
        crispyCount.text  = cRun.crispy.ToString();
        perfectCount.text = cRun.perfect.ToString();

        int jSum, cSum, pSum;

        jSum = 5 * cRun.juicy;
        cSum = 8 * cRun.crispy;
        pSum = 10 * cRun.perfect;

        juicySum.text   = jSum.ToString();
        crispySum.text  = cSum.ToString();
        perfectSum.text = pSum.ToString();

        total          = jSum + cSum + pSum;
        totalText.text = total.ToString();
    }
示例#2
0
	// Use this for initialization
	public void CountEverything () {

        Debug.Log("Run awake");

        cRun = GM.currentRun;

        if (GM.currentRun == null)
        {
            return;

        }

        juicyCount.text = cRun.juicy.ToString();
        crispyCount.text = cRun.crispy.ToString();
        perfectCount.text = cRun.perfect.ToString();

        int jSum,cSum,pSum;

        jSum = 5*cRun.juicy;
        cSum = 8*cRun.crispy;
        pSum = 10*cRun.perfect;

        juicySum.text = jSum.ToString();
        crispySum.text = cSum.ToString();
        perfectSum.text = pSum.ToString();

        total = jSum + cSum + pSum;
        totalText.text = total.ToString();



	
	}
示例#3
0
 public void StartNewGame()
 {
     currentRun = new runClass();
     currentRun.init();
     Debug.Log("new");
     Debug.Log(currentRun.chickensleft);
     StartNewChicken();
 }
示例#4
0
    // Use this for initialization
    void Start()
    {
        UI = GetComponent <uiManager>();

        currentRun = new runClass();
        currentRun.init();

        StartNewChicken();
    }
示例#5
0
    public void StartNewGame() {

        currentRun = new runClass();
        currentRun.init();
        Debug.Log("new");
        Debug.Log(currentRun.chickensleft);
        StartNewChicken();
        
    
    }
示例#6
0
	// Use this for initialization
	void Start () {
        UI = GetComponent<uiManager>();

        currentRun = new runClass();
        currentRun.init();
        
        StartNewChicken();
        
	
	}