예제 #1
0
    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;
    }
예제 #2
0
파일: Minions.cs 프로젝트: tentacode/cabala
    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;
    }