コード例 #1
0
 public boatController(string size)
 {
     boat = Object.Instantiate(Resources.Load("prefabs/boat", typeof(GameObject))
                               , rightPos, Quaternion.identity, null) as GameObject;
     boat.name    = "boat";
     toSolveClick = boat.AddComponent(typeof(firstScenceSolveClick)) as firstScenceSolveClick;
     toSolveClick.setName(boat.name);
     updateBoatMove = boat.AddComponent(typeof(boatMoveBeahave)) as boatMoveBeahave;
     defaultSize    = size;
     this.size      = defaultSize;
 }