Exemplo n.º 1
0
        void SetInitialReferences()
        {
            destructibleMaster = GetComponent <Destructible_Master>();

            if (GetComponent <Rigidbody>() != null)
            {
                myRigidbody = GetComponent <Rigidbody>();
            }
        }
        void SetInitialReferences()
        {
            destructibleMaster = GetComponent <Destructible_Master>();

            playerMaster = GameObject.FindWithTag("Player").GetComponent <Player_Master>();

            if (GetComponent <Item_Master>() == null)
            {
                Destroy(this);
            }
        }
Exemplo n.º 3
0
 void SetInitialReferences()
 {
     destructibleMaster = GetComponent <Destructible_Master>();
 }
Exemplo n.º 4
0
 void SetInitialReferences()
 {
     destructibleMaster = GetComponent <Destructible_Master>();
     myTransform        = transform;
 }
Exemplo n.º 5
0
 void SetInitialReferences()
 {
     destructibleMaster = GetComponent <Destructible_Master>();
     startingHealth     = health;
 }