Example #1
0
    private void Start()
    {
        UnitChaseBehaviour chaseBehaviourComp = null;

        if ((chaseBehaviourComp = GetComponent <UnitChaseBehaviour>()) != null)
        {
            range           = chaseBehaviourComp.DesiredRadiusToTarget;
            TargetDetection = chaseBehaviourComp.TargetDetection;
        }
    }
Example #2
0
    private MeleeAbility meleeAbility;             // need to access the DesiredTags of this

    void Start()
    {
        chaseBehaviourComp = GetComponent <UnitChaseBehaviour>();
        meleeAbility       = GetComponent <MeleeAbility>();
    }