void Start() { firefly.SetActive(false); tutoPlayerController = player.GetComponent <TutoPlayerController>(); playerFlipPlayerScript = tutoPlayerController.GetComponent <FlipPlayer>(); playerFlipPlayerScript.enabled = false; intaractibleObject.SetActive(false); textMesh.text = ""; StartCoroutine(displayText()); cameraAudioSource.enabled = false; PlayerPrefs.SetInt("DidTuto", 0); PlayerPrefs.SetInt("SelfFear", 0); PlayerPrefs.SetInt("HypochondriacFear", 0); PlayerPrefs.SetInt("SportFear", 0); PlayerPrefs.SetInt("OthersFear", 0); }
public void Solve() { var solution = level.FindSolutionPath(current); if (solution != null && solution.Count > 0) { Debug.Log("Solving logo..."); FlipPlayer fp = new FlipPlayer(this); fp.Finished += OnFinished; fp.Play(solution); } else { Debug.LogError("Logo level solution not found"); } }
void Start() { playerAnimator = player.GetComponent <Animator>(); flipPlayerScript = player.GetComponent <FlipPlayer>(); }