Пример #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>();
 }
Пример #2
0
    private void Awake()
    {
        self  = GetComponent <IFactionHolder>();
        agent = GetComponent <PolyNav.PolyNavAgent>();

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

        serachArea.radius = range;

        isAttacking = false;
    }