Esempio n. 1
0
 // 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;
 }
Esempio n. 2
0
    // 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;
    }