public override void OnStartServer() { _destructible = GetComponent <Destructible>(); navAgent = GetComponent <NavMeshAgent>(); _unit_ID = GetComponent <Unit_ID>(); _destructible.CmdSetMaxLife(minionsInformations.baseLifePoints); _destructible.HandleDestroyed += OnDie; _destructible.HandleAlive += OnAlive; }
public override void OnStartServer() { _destructible = GetComponent<Destructible>(); navAgent = GetComponent<NavMeshAgent>(); _unit_ID = GetComponent<Unit_ID>(); _destructible.CmdSetMaxLife(minionsInformations.baseLifePoints); _destructible.HandleDestroyed += OnDie; _destructible.HandleAlive += OnAlive; }