Exemplo n.º 1
0
    void Start()
    {
        GameSize GameSizeObject = GameSize.gameSize;

        GameSizeObjectSizeX = GameSizeObject.transform.localScale.x / 2.0f;
        GameSizeObjectSizeY = GameSizeObject.transform.localScale.y / 2.0f;

        gameStartCounter = GameStartCounter.gameStartCounter;
        StartCoroutine(gameStartCounter.FirstStartCounting(gameStartCounter.startTime, StartLevel));
    }
Exemplo n.º 2
0
 void Awake()
 {
     if (gameStartCounter == null)
     {
         gameStartCounter = this;
     }
     else if (gameStartCounter != this)
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 3
0
 public void Init(GameStartCounter gameStartCounter)
 {
     gameStartCounter.TimeCount.Subscribe(timeCount =>
     {
         if (timeCount > 0)
         {
             ShowCountdown(timeCount);
         }
         else
         {
             ShowGameStart();
         }
     }).AddTo(gameObject);
 }