示例#1
0
 public void OnCombo(int _combo, Vector2 _pos)
 {
     this.StopAllCoroutines();
     this.isOnCombo       = true;
     this.comboText.color = new Color(this.comboText.color.r, this.comboText.color.g, this.comboText.color.b, 1.0f);
     this.comboText.gameObject.SetActive(true);
     this.comboText.text = string.Format("{0} Combo", _combo.ToString());
     if (_pos.x < -MAX_POS_X)
     {
         _pos.x = -MAX_POS_X;
     }
     else if (_pos.x > MAX_POS_X)
     {
         _pos.x = MAX_POS_X;
     }
     this.comboText.transform.position = _pos;
     StartCoroutine(MoveCombo());
     StartCoroutine(UseableCoroutine.WaitThenCallback(START_OFF_ALPHA_TIME, () => this.isOffComboAlpha = true));
     StartCoroutine(UseableCoroutine.WaitThenCallback(ON_COMBO_TIME
                                                      , () => {
         this.comboText.gameObject.SetActive(false);
         this.isOnCombo       = false;
         this.isOffComboAlpha = false;
     }
                                                      ));
 }
示例#2
0
 public void SetNotifyText(string _text)
 {
     if (notifyTextCoroutine != null)
     {
         StopCoroutine(notifyTextCoroutine);
     }
     this.notifyText.gameObject.SetActive(true);
     this.notifyText.text = _text;
     notifyTextCoroutine  = StartCoroutine(UseableCoroutine.WaitThenCallback(5.0f, () => this.notifyText.gameObject.SetActive(false), this.notifyTextCoroutine));
 }
示例#3
0
 public void StartGame()
 {
     UI.UICanvasController.Instance.Timer.StartCountDown();
     this.GameStateText.OnStartText();
     this.StartCoroutine(UseableCoroutine.WaitThenCallback(ON_TIME_OF_START_TEXT, () => this.GameStateText.OffStartText()));
 }