コード例 #1
0
 // Use this for initialization
 void Start()
 {
     if (type != "hall")
     {
         script = townHall.GetComponent <TownHallScript>();
     }
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     selected      = false;
     soldierScript = GetComponent <SoldierScript>();
     townScript    = GetComponent <MapObject>().townHall.GetComponent <TownHallScript>();
 }
コード例 #3
0
ファイル: PlayerScript.cs プロジェクト: jspezia/Unity
 // Use this for initialization
 void Start()
 {
     selected = false;
     soldierScript = GetComponent<SoldierScript>();
     townScript = GetComponent<MapObject>().townHall.GetComponent<TownHallScript>();
 }
コード例 #4
0
ファイル: MapObject.cs プロジェクト: jspezia/Unity
 // Use this for initialization
 void Start()
 {
     if (type != "hall") {
         script = townHall.GetComponent<TownHallScript>();
     }
 }