public virtual void Start() { godControl = GameObject.Find("GodPlayer").GetComponent <GodControl>(); godHUD = GameObject.Find("GodCanvas"); allTogglePlay = godHUD.GetComponentInChildren <Toggle>(); maxRecordTime = recordTime; recordingState = RecordingState.NOT_RECORDING; startEuler = transform.eulerAngles; startPos = transform.position; }
public void AllTogglePlay(GodControl godControl) { godControl.midIsPlaying = !godControl.midIsPlaying; midIsPlaying = godControl.midIsPlaying; godControl.rightIsPlaying = !godControl.rightIsPlaying; rightIsPlaying = godControl.rightIsPlaying; godControl.leftIsPlaying = !godControl.leftIsPlaying; leftIsPlaying = godControl.leftIsPlaying; GameStateControl.gameState = GameStateControl.GameState.LIVE; GameObject[] enemies = GameObject.FindGameObjectsWithTag("Enemies"); foreach (GameObject enemy in enemies) { enemy.GetComponent <EnemyActionRecorder>().ResetEnemyPosAndRot(); // enemy.GetComponent<EnemyActionRecorder>().recordingState = EnemyActionRecorder.RecordingState.PLAYBACK; } }
public void RightTogglePlay(GodControl godControl) { godControl.rightIsPlaying = !godControl.rightIsPlaying; rightIsPlaying = godControl.rightIsPlaying; }
public void LeftTogglePlay(GodControl godControl) { godControl.leftIsPlaying = !godControl.leftIsPlaying; leftIsPlaying = godControl.leftIsPlaying; }
public void MidTogglePlay(GodControl godControl) { godControl.midIsPlaying = !godControl.midIsPlaying; midIsPlaying = godControl.midIsPlaying; }