Ejemplo n.º 1
0
        void SetInitialReferences()
        {
            itemMaster = GetComponent <Item_Master> ();
            playerGo   = GameManager_References._player;

            if (isTriggerPickup)
            {
                if (GetComponent <Collider> () != null)
                {
                    GetComponent <Collider> ().isTrigger = true;
                }

                if (GetComponent <Rigidbody> () != null)
                {
                    GetComponent <Rigidbody> ().isKinematic = true;
                }
            }
        }
Ejemplo n.º 2
0
 void SetInitialReferences()
 {
     itemMaster  = GetComponent <Item_Master> ();
     myTransform = transform;
     myRigidbody = GetComponent <Rigidbody> ();
 }
Ejemplo n.º 3
0
 void SetInitialReferences()
 {
     itemMaster = GetComponent <Item_Master> ();
 }