예제 #1
0
파일: Models.cs 프로젝트: xxxufj/unity3D-
 public void initSettings()
 {
     if (boat.GetComponent <ClickGUI>() == null)
     {
         clickScript = boat.AddComponent(typeof(ClickGUI)) as ClickGUI;
         clickScript.setBoat(this);
     }
     boat.transform.position = rightPort;
     coastName    = "rightCoast";
     leftOccupied = rightOccupied = false;
 }
예제 #2
0
파일: Models.cs 프로젝트: xxxufj/unity3D-
 public void initSettings()
 {
     if (character.GetComponent <ClickGUI>() == null)
     {
         clickScript = character.AddComponent(typeof(ClickGUI)) as ClickGUI;
         clickScript.setCharacter(this);
     }
     onBoat    = false;
     seat      = -1;
     coastName = "rightCoast";
     character.transform.parent = null;
     clickScript.enabled        = true;
 }