public void flyUFO() { GameObject theUFO = ufoFactory.getUFO(round); theUFO.transform.position = Vector3.zero; ufoActionManager.FlyUFO(theUFO, round); }
void nextRound() { for (int i = 0; i < 10; i++) { GameObject tmp = ufo_factory.getUFO(round); tmp.name = "ufo" + (i + 1); ufo_queue.Enqueue(tmp); } }
private void nextRound() { UFOFactory ufof = Singleton <UFOFactory> .Instance; for (int i = 0; i < ufoNumber; i++) { ufoQueue.Enqueue(ufof.getUFO(currentRound)); } actionManager.StartRun(ufoQueue); }
public void flyUFO() { GameObject theUFO = ufoFactory.getUFO(round); theUFO.transform.position = Vector3.zero; if (round == 1) { ufoActionManager.ActionEvent(ufoActionManager.slowFlyAction, theUFO, ActionEventType.Started); } else if (round == 2) { ufoActionManager.ActionEvent(ufoActionManager.middleFlyAction, theUFO, ActionEventType.Started); } else if (round == 3) { ufoActionManager.ActionEvent(ufoActionManager.fastFlyAction, theUFO, ActionEventType.Started); } }