コード例 #1
0
 // Use this for initialization
 void Start()
 {
     ship_transform = GameObject.Find("Ship");
     shipInfo = ship_transform.GetComponent<ShipGravity>();
 }
コード例 #2
0
ファイル: SphereRenderer.cs プロジェクト: MrPhil/Space-Exodus
 void Start()
 {
     ship = GameObject.Find("Ship");
     sun_colors = new Color[] {new Color(.93f, .76f, .76f),new Color(.87f, .87f, .74f),new Color(.64f, .81f, .97f),new Color(.67f, .67f, .36f)};
     is_created = true;
     inst = null;
     shipG = (ShipGravity)GameObject.Find("Ship").GetComponent("ShipGravity");
     //do something
 }