Exemple #1
0
 void Start()
 {
     GameObjectInfo.GetObjectInfoById(gameObject.GetInstanceID()).Team = Team;
     _unitManager.RegisterUnit(gameObject.GetInstanceID(), this);
     CurrHealth        = MaxHealth;
     HealtBar.maxValue = MaxHealth;
     HealtBar.value    = CurrHealth;
 }