Пример #1
0
    public static Action getAction(int _score)
    {
        OverAction ac = ScriptableObject.CreateInstance <OverAction>();

        ac.score = _score.ToString();
        return(ac);
    }
Пример #2
0
 // next round callback
 public void call()
 {
     if (round < 4)
     {
         ++round;
         Action ac = newRound.getAction(round);
         ac.callback = this;
         RunAction(ac);
     }
     else
     {
         Action ac = OverAction.getAction(scorer.getScore());
         ac.callback = null;
         RunAction(ac);
     }
 }