コード例 #1
0
 // Use this for initialization
 void Start()
 {
     death = GameObject.FindGameObjectWithTag("Player").GetComponent <BallOffTerrain>();
 }
コード例 #2
0
ファイル: EndLevel.cs プロジェクト: theniaK/CSharp
 void Awake()
 {
     nextLevel = GameObject.FindGameObjectWithTag("Player").GetComponent <BallOffTerrain>();        // Gets the BallOffTerrain script from the Player
 }