public BoatController()
 {
     TFflag    = 1;
     from_pos  = new Vector3[] { new Vector3(4.5f, 1.5f, 0), new Vector3(5.5f, 1.5f, 0) };
     to_pos    = new Vector3[] { new Vector3(-5.5f, 1.5f, 0), new Vector3(-4.5f, 1.5f, 0) };
     boat      = Object.Instantiate(Resources.Load("Prefabs/Boat", typeof(GameObject)), fromPos, Quaternion.identity, null) as GameObject;
     boat.name = "boat";
     Cmove     = boat.AddComponent(typeof(moveable)) as moveable;
     boat.AddComponent(typeof(ClickGUI));
 }
 public MyCharacterController(string Myname)
 {
     if (Myname == "priest")
     {
         character = Object.Instantiate(Resources.Load("Prefabs/Priest", typeof(GameObject)), Vector3.zero, Quaternion.identity, null) as GameObject;
         Ctype     = 0;
     }
     else
     {
         character = Object.Instantiate(Resources.Load("Prefabs/Devil", typeof(GameObject)), Vector3.zero, Quaternion.identity, null) as GameObject;
         Ctype     = 1;
     }
     Cmove    = character.AddComponent(typeof(moveable)) as moveable;
     clickgui = character.AddComponent(typeof(ClickGUI)) as ClickGUI;
     clickgui.setController(this);
 }