// Use this for initialization void Start() { distanceToPlayer = Vector3.Distance(transform.position, player.transform.position); totalWaypoints = waypoints.Capacity; logicScript = GameObject.Find("Test").GetComponent <HidingLogic>(); }
void Start() { logicScript = GameObject.Find("Test").GetComponent <HidingLogic>(); }