Exemplo n.º 1
0
 void Start()
 {
     lr.startWidth = 0.05f;
     lr.endWidth   = 0.05f;
     playerAgent   = GameManagerScript.ins.player.GetComponent <PolyNav.PolyNavAgent>();
     log           = GetComponent <CombatHUDLog>();
     attackLog     = GetComponent <CombatHUDAttack>();
 }
Exemplo n.º 2
0
    private void Awake()
    {
        self  = GetComponent <IFactionHolder>();
        agent = GetComponent <PolyNav.PolyNavAgent>();

        Reporter.ComponentMissingCheck(self);
        Reporter.ComponentMissingCheck(agent);

        serachArea.radius = range;

        isAttacking = false;
    }