예제 #1
0
 void Start()
 {
     axe      = GameObject.Find("axe");
     axe2     = GameObject.Find("axe2");
     hammer   = GameObject.Find("hammer");
     mace     = GameObject.Find("mace");
     sword    = GameObject.Find("sword");
     inv      = GameObject.Find("Inventory").GetComponent <Inventory>();
     myweapon = GameObject.Find("weapon").GetComponent <myWeapon> ();
     axe.SetActive(true);
     axe2.SetActive(false);
     mace.SetActive(false);
     sword.SetActive(false);
     hammer.SetActive(false);
     weaponList.Add(axe);
     weaponList.Add(axe2);
     weaponList.Add(mace);
     weaponList.Add(sword);
     weaponList.Add(hammer);
 }
    void Start()
    {
        playerdata = GameObject.Find("Player").GetComponent <playerDatas> ();
        myweapon   = GameObject.Find("weapon").GetComponent <myWeapon> ();
//		InvokeRepeating ("updateTexts", 1f, 0.2f);
    }
예제 #3
0
 void Start()
 {
     playerdata = GameObject.Find("Player").GetComponent <playerDatas> ();
     myweapon   = GameObject.Find("weapon").GetComponent <myWeapon> ();
 }