public static Action getAction(int _score) { OverAction ac = ScriptableObject.CreateInstance <OverAction>(); ac.score = _score.ToString(); return(ac); }
// 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); } }