// Use this for initialization
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player");
        cms    = player.GetComponentInChildren <CharMineScript>();
        goLoot = GameObject.FindGameObjectWithTag("LootPooler");
        loot   = goLoot.GetComponent <LootPoolerScript>();

        _lootInventory = 0;
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     cms = gameObject.GetComponentInChildren <CharMineScript>();
 }