public void SSActionEvent(SSAction source,
                           SSActionEventType events = SSActionEventType.Competeted,
                           int intParam             = 0,
                           string strParam          = null)
 {
     if (autoNext)
     {
         judgement.setCountdown();
         StartCoroutine(Next());
     }
 }
Пример #2
0
 public void SSActionEvent(SSAction source,
                           SSActionEventType events = SSActionEventType.Competeted,
                           int intParam             = 0,
                           string strParam          = null)
 {
     runSequence.Remove(source);
     if (this.callback != null)
     {
         this.callback.SSActionEvent(source);
     }
 }
Пример #3
0
        public void SSActionEvent(SSAction source,
                                  SSActionEventType events = SSActionEventType.Competeted,
                                  int intParam             = 0,
                                  string strParam          = null)
        {
            UFO ufo = source.gameobject.GetComponent <UFO>();

            if (!ufo.isClicked)
            {
                Judge.getInstance().subScore(ufo.score);
            }
            UFOFactory.getInstance().free(source.gameobject);
        }
Пример #4
0
        public void SSActionEvent(SSAction source,
                                  SSActionEventType events = SSActionEventType.Competeted,
                                  int intParam             = 0,
                                  string strParam          = null)
        {
            UFO ufo = source.gameobject.GetComponent <UFO>();

            if (!ufo.isClicked)
            {
                Judge.getInstance().subScore(ufo.score);
            }
            UFOFactory.getInstance().free(source.gameobject);
            runSequence.Remove(source);
            if (runSequence.Count <= 0)
            {
                if (this.callback != null)
                {
                    this.callback.SSActionEvent(source);
                }
            }
        }
Пример #5
0
 public void addAction(SSAction action)
 {
     runSequence.Add(action);
     action.Start();
 }
Пример #6
0
 public void addWaitAction(SSAction action)
 {
     waitSequence.Add(action);
 }