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