Exemple #1
0
 // Update is called once per frame
 void OnTriggerEnter2D(Collider2D other)
 {
     if ((other.CompareTag("Player") == true) && (isTransitioning == false))
     {
         PlayerCamera.PlayVictoryAnimation();
         Singleton.Get <SceneTransitionManager> ().LoadNextLevel();
         controls.IsInControl = false;
         isTransitioning      = true;
     }
 }
 void Start()
 {
     instance      = this;
     focusOnPlayer = false;
     animator      = GetComponent <Animator> ();
 }