コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     nav          = this.GetComponent <SteeringFollowNavMeshPath>();
     Game_Manager = GameObject.Find("Game_Manager").GetComponent <Game_Manager>();
     Check_Cells();
     audio_sim = this.GetComponent <AudioSource>();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     nav                = this.GetComponent <SteeringFollowNavMeshPath>();
     Game_Manager       = GameObject.Find("Game_Manager").GetComponent <Game_Manager>();
     wait_position      = target.transform.position;
     secretary_position = target2.transform.position;
     audio_sim          = this.GetComponent <AudioSource>();
 }
コード例 #3
0
    // Start is called before the first frame update
    void Start()
    {
        move    = GetComponent <Move>();
        nav     = GetComponent <SteeringFollowNavMeshPath>();
        pathnav = GetComponent <SteeringFollowPath>();

        if (nav.enabled && target2 != false && this.gameObject.name != "SimpleCitizens_Grandma_White")
        {
            nav.enabled = false;
        }
        if (!nav.enabled && target2 != false)
        {
            nav.enabled = true;
        }
    }
コード例 #4
0
 // Start is called before the first frame update
 void Start()
 {
     nav = this.GetComponent <SteeringFollowNavMeshPath>();
 }
コード例 #5
0
 // Start is called before the first frame update
 void Start()
 {
     nav           = this.GetComponent <SteeringFollowNavMeshPath>();
     Game_Manager  = GameObject.Find("Game_Manager").GetComponent <Game_Manager>();
     work_position = work_target.transform.position;
 }