Esempio n. 1
0
    void Start()
    {
        _gameState  = GameState.Ready;
        readyCanvas = ReadyCanvas.GetInstance();
        readyCanvas.SetActive();
        readyCanvas.terminate = GameStart;

        initialCount    = itemManager.lastCount;
        scoreController = scoreImage.GetComponent <ScoreController>();
        scoreController.SetGageUnit(initialCount);
        scoreController.ChangeValue(1);
    }
 private void Awake()
 {
     if (_S == null)
     {
         _S = this;
     }
     else
     {
         Debug.LogError("Duplicated ReadyCanvas");
     }
     children = GetComponentsInChildren <Transform>()
                .Select(t => t.gameObject)
                .Where(o => o.GetInstanceID() != this.GetInstanceID())
                .ToArray();
     SetChildren(false);
 }