Exemple #1
0
 void OnSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     Dbg.Log(this, "OnSceneLoad", scene, mode);
     if (mode != LoadSceneMode.Single)
     {
         return;
     }
     playerBody.position = new Vector2();
     playerBody.velocity = new Vector2();
     playerWalk.Stop();
     player.GetComponent <Mortal>().Resurrect();
 }