Ejemplo n.º 1
0
    private void MyGetPoint()
    {
        score++;
        CoderDestroyableWorkstation.Damage();
        if (score == goldLevel)
        {
            CoderDestroyableWorkstation.Destroy();

            CoderLevelEnder.EndLevel();
        }
    }
Ejemplo n.º 2
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.T))
        {
            StartStopWatch();
        }

        guiText.text = prefix + Mathf.Max((float)(duration - sw.Elapsed.TotalSeconds), 0).ToString("F2");
        if (sw.Elapsed.TotalSeconds > duration && !CoderLevelEnder.LevelEnded)
        {
            CoderLevelEnder.EndLevel();
        }
    }
Ejemplo n.º 3
0
 void Awake()
 {
     instance = this;
 }