My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
StandardObject Class Reference
Inheritance diagram for StandardObject:
Modifiable

Public Member Functions

void SetHealth (float newHealth, Player player=null, NetworkObject damageObject=null)
 
void Master_SetHealth (float newHealth, Player damagePlayer=null, NetworkObject damageObject=null)
 
void Master_Death ()
 
void Master_DeathAndDestroy ()
 
int GetPlayerID ()
 
Player GetPlayer ()
 
float GetTimeSinceCreated ()
 

Static Public Member Functions

static bool IsSameKindOfObject (GameObject obj1, GameObject ob2)
 
static void GetRidOf (GameObject go)
 

Public Attributes

string prefabName
 
float defaultHealth = 1.0f
 
float deadTime = 0.0f
 
float createTime
 
bool published
 
float healthDisplay
 
DieEvent Died
 
UnityEvent Destroyed
 
HealthEvent HealthChanged
 
Player lastDamagePlayer
 
NetworkObject lastDamageObject
 

Static Public Attributes

static readonly string IMMEDIATE_DEATH = "dienow"
 
static readonly string DESTROYED = "destroyed"
 

Properties

Vector3 Center [get, set]
 
ObscuredFloat Health [get]
 
bool Dead [get]
 
float DeadTime [get]
 
- Properties inherited from Modifiable
NetworkObject net [get]
 

The documentation for this class was generated from the following file: