// Start is called before the first frame update void Start() { //NpcdMan = FindObjectOfType<DialogManager>(); npcRBody = GetComponent <Rigidbody2D>(); npcAnim = GetComponent <Animator>(); Npc = GameObject.FindWithTag("Npc").GetComponent("NpcSara") as NpcSara; }
// Start is called before the first frame update void Awake() { busy = false; patrolWaitTime = patrolStartWaitTime; moveSpot.position = new Vector3(Random.Range(minX, maxX), Random.Range(minY, maxY)); myContoller = GameObject.FindWithTag("Npc").GetComponent <NpcSara>(); myMovePointTransform = GameObject.FindWithTag("MoveSpotPoint").transform; canMove = true; }