// 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; } }
private void Awake() { player = FindObjectOfType <Player_Pawn>(); Instance = this; }