// Use this for initialization void Start() { itemChecker = GameObject.Find("Equipped Item").GetComponent <EquipChecker> (); birdChecker = GameObject.Find("Equipped Bird").GetComponent <EquippedBirdChecker> (); directionBird = GameObject.Find("Background/Mission Panel/BirdDir"); directionBird.SetActive(false); }
//private Equipment equip; // Use this for initialization void Start() { inv = GameObject.Find("Inventory").GetComponent <Inventory> (); itemChecker = GameObject.Find("Equipped Item").GetComponent <EquipChecker> (); // equip = GameObject.Find ("Equipment").GetComponent<Equipment> (); }
//this will be remembered; void Awake() { if (Instance) { DestroyImmediate(gameObject); } else { DontDestroyOnLoad(gameObject); Instance = this; } }