Пример #1
0
 //Mono stuff
 void Awake()
 {
     if (thisInv == null)
     {
         thisInv = this;
     }
 }
Пример #2
0
    void Start()
    {
//				if (thisLevel == null)
//						Debug.LogError ("no Level referenced for this entity: " + gameObject.name);
        thisManage = GameManager.thisM;
        thisInv    = invManager.thisInv;
//				thisLevel.addEntity (this);
        if (dropRandom)
        {
            amount = Random.Range(1, amount);
        }
        pickable = false;
        Invoke("resetPick", 0.5f);
    }
Пример #3
0
 void Start()
 {
     player = invManager.thisInv;
 }