示例#1
0
 // 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);
 }
示例#2
0
    //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> ();
    }
示例#3
0
 //this will be remembered;
 void Awake()
 {
     if (Instance)
     {
         DestroyImmediate(gameObject);
     }
     else
     {
         DontDestroyOnLoad(gameObject);
         Instance = this;
     }
 }