void SetInitialReferences()
 {
     destructibleMaster = GetComponent <DestructibleMaster>();
     if (GetComponent <Rigidbody>() != null)
     {
         myMass = GetComponent <Rigidbody>().mass;
     }
 }
Exemplo n.º 2
0
 void SetInitialReferences()
 {
     destructibleMaster = GetComponent <DestructibleMaster>();
     if (FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerNPCRelationsMaster>() != null)
     {
         nPCRelationsMaster = FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerNPCRelationsMaster>();
     }
     if (playerTag == "")
     {
         playerTag = "Player";
     }
 }
Exemplo n.º 3
0
 void SetInitialReferences()
 {
     if (GetComponent <ItemMaster>() == null)
     {
         Destroy(this);
     }
     if (GameManagerReferences._player != null)
     {
         playerMaster = GameManagerReferences._player.GetComponent <PlayerMaster>();
     }
     destructibleMaster = GetComponent <DestructibleMaster>();
 }
Exemplo n.º 4
0
 void SetInitialReferences()
 {
     destructibleMaster = GetComponent <DestructibleMaster>();
     startingHealth     = health;
 }
Exemplo n.º 5
0
 void SetInitialReferences()
 {
     destructibleMaster = GetComponent <DestructibleMaster>();
 }
Exemplo n.º 6
0
 void SetInitialReferences()
 {
     destructibleMaster = GetComponent <DestructibleMaster>();
     myTransform        = transform;
 }