refactor: moved a lot of player related scripts to the Reset.Units namespace
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Reset.Units{
|
||||
|
||||
private void SetMaxHealth(){
|
||||
if (maxHealth == 0f) {
|
||||
Debug.LogError($"Max health is not set for type of <b>{((object)this)}</b>. Setting to 10000.");
|
||||
Debug.LogError($"Max health is not set for <b>{((MonoBehaviour)this).name}</b>. Setting to 10000.");
|
||||
currentHealth = 10000f;
|
||||
} else {
|
||||
currentHealth = maxHealth;
|
||||
|
||||
Reference in New Issue
Block a user