// Start is called before the first frame update
 void Awake()
 {
     system = this;
     switch (Event)
     {
     case Events.Transition:
         entry            = gameObject.AddComponent <DoorEntry>();
         entry.scene_name = location;
         entry.value_x    = position.x;
         entry.value_y    = position.y;
         break;
     }
 }
Esempio n. 2
0
 private void Awake()
 {
     player   = FindObjectOfType <Player_Pawn>();
     Instance = this;
 }