public void emitDisk() { for (int i = 0; i < disk_level.getEmitnum(); i++) { int id = myFactory.getDisk(); GameObject disk = myFactory.GetDiskObject(id); disk.SetActive(true); ActionManager.GetInstance().ApplyMoveToAction(disk); disk.GetComponent <MoveToAction>().setId(id); } }
public void playDisk() { GameObject obj = factory.GetDiskObject(factory.GetDisk(sceneController.round)); this.ApplyMoveToAction(obj, sceneController.getSpeedByRound()); }