Beispiel #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;
                }
            }
        }
Beispiel #2
0
 void SetInitialReferences()
 {
     itemMaster  = GetComponent <Item_Master> ();
     myTransform = transform;
     myRigidbody = GetComponent <Rigidbody> ();
 }
Beispiel #3
0
 void SetInitialReferences()
 {
     itemMaster = GetComponent <Item_Master> ();
 }