コード例 #1
0
ファイル: door_behavior.cs プロジェクト: 9volt/ld26
 // Use this for initialization
 void Start()
 {
     last_up = 0f;
     door = this.transform.parent.GetComponent<Transform>();
     audio = this.transform.parent.GetComponent<AudioSource>();
     open = false;
     player = GameObject.FindGameObjectWithTag("Player").GetComponent<idiort_move>();
 }
コード例 #2
0
ファイル: crew_behavior.cs プロジェクト: 9volt/ld26
 // Use this for initialization
 void Start()
 {
     master = GameObject.FindGameObjectWithTag("Player").GetComponent<idiort_move>();
     nav = GetComponent<NavMeshAgent>();
     my_name = this.gameObject.name;
     last_move = Time.time;
     string room = master.where_should_I_be(my_name);
     if(room == null){
         Destroy(this.gameObject);
     } else {
         home_points = GameObject.FindGameObjectsWithTag(room);
         nav.SetDestination(pick_random_location());
     }
 }
コード例 #3
0
ファイル: brigger.cs プロジェクト: 9volt/ld26
 // Use this for initialization
 void Start()
 {
     loc = this.gameObject.GetComponent<Transform>();
     master = this.GetComponent<idiort_move>();
     gui = null;
     names = new Dictionary<string, string>(){
         {"captain","the Captain"},
         {"first_mate","the First Mate"},
         {"cargo_man","the Cargoman"},
         {"cargo_man_mate","Hotdog"},
         {"navigator","the Navigator"},
         {"doctor","the Doctor"},
         {"cook","the Cook"},
         {"engineer","the Engineer"},
         {"leftenant","the Leftenant"},
         {"cabin_boy","the Cabin Boy"}
     };
 }