protected virtual void Die() { IsDead = true; if (!isServer) { return; } HasInteract = false; // с объектом нельзя взаимодействовать RemoveFocus(); Motor.MoveToPoint(transform.position); EventOnDie?.Invoke(); RpcDie(); }
protected virtual void Die() { IsDead = true; if (!isServer) { return; } HasInteract = false; // с объектом нельзя взаимодействовать RemoveFocus(); Motor.MoveToPoint(transform.position); EventOnDie?.Invoke(); RpcDie(); }