public void SSActionEvent(SSAction source,
                           SSActionEventType events = SSActionEventType.Competeted,
                           int intParam             = 0,
                           string strParam          = null)
 {
     if (autoNext)
     {
         judgement.setCountdown();
         StartCoroutine(Next());
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 5
0
 public void addAction(SSAction action)
 {
     runSequence.Add(action);
     action.Start();
 }
Exemplo n.º 6
0
 public void addWaitAction(SSAction action)
 {
     waitSequence.Add(action);
 }