using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class Cow : Animal{ public Transform moveSpot; void Start (){ moveSpot.position = new Vector3(Random.Range(minX, maxX), 0.1f, Random.Range(minZ, maxZ)); transform.LookAt(moveSpot); } void Update (){ Wander(moveSpot); } }