Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Agent = this.GetComponent<NavMeshAgent>();
     MyNavType = navigationType.Waypoint;
     MySpriteDirection = spriteDirection.Down;
     MoveTrigger = false;
     MyAnimator = this.GetComponentInChildren<Animator>();
     Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform;
     manager = objManager.GetComponent<scr_manager>();
     WaypointManager = schedule[0].placeToGO;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     Agent = this.GetComponent<NavMeshAgent>();
     MyNavType = navigationType.Objective;
     MySpriteDirection = spriteDirection.Down;
     MyAnimator = this.GetComponentInChildren<Animator>();
     triggerRightClick = true;
     holdItem = false;
     Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform;
     manager = objManager.GetComponent<scr_manager>();
 }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        Agent             = this.GetComponent <NavMeshAgent>();
        MyNavType         = navigationType.Objective;
        MySpriteDirection = spriteDirection.Down;
        MyAnimator        = this.GetComponentInChildren <Animator>();
        triggerRightClick = true;
        holdItem          = false;
        Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform;

        manager = objManager.GetComponent <scr_manager>();
    }
Exemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        Agent             = this.GetComponent <NavMeshAgent>();
        MyNavType         = navigationType.Waypoint;
        MySpriteDirection = spriteDirection.Down;
        MoveTrigger       = false;
        MyAnimator        = this.GetComponentInChildren <Animator>();
        Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform;

        manager         = objManager.GetComponent <scr_manager>();
        WaypointManager = schedule[0].placeToGO;
    }