Ejemplo n.º 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;
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     instance      = this;
     focusOnPlayer = false;
     animator      = GetComponent <Animator> ();
 }