コード例 #1
0
	void Start ()
	{
		gameControllerObject = GameObject.FindGameObjectWithTag ("GameController");
 		if (gameControllerObject != null)
		{
			gameController = gameControllerObject.GetComponent <SPIGameControls>();
		}
		if (gameController == null)
		{
			Debug.Log ("Cannot find 'GameController' script");
		}
	}
コード例 #2
0
ファイル: ShipMovements.cs プロジェクト: Angryman80/spi
	void Start(){
		gameControllerObject = GameObject.FindGameObjectWithTag ("GameController");
		gameControlInst = gameControllerObject.gameObject.GetComponent<SPIGameControls> ();
	}