Exemplo n.º 1
0
    private void Start()
    {
        UnitChaseBehaviour chaseBehaviourComp = null;

        if ((chaseBehaviourComp = GetComponent <UnitChaseBehaviour>()) != null)
        {
            range           = chaseBehaviourComp.DesiredRadiusToTarget;
            TargetDetection = chaseBehaviourComp.TargetDetection;
        }
    }