コード例 #1
0
 // Use this for initialization
 void Start()
 {
     balloonConScr  = balloonObj.GetComponent <balloonControler>();
     spawnDistanceX = distanceToSpawn;
     for (int i = -10; i < 10; i++)
     {
         GameObject setBlockObj = Instantiate(platforms[0]) as GameObject;
         setBlockObj.name = "platform";
         setBlockObj.transform.SetParent(this.transform);
         setBlockObj.transform.position = new Vector3(i * 3, -3.5f, 0);
         platformsObj.Add(setBlockObj);
         //give the last spawn Cordination
         lastaddedPlatform = setBlockObj;
     }
 }
コード例 #2
0
 void Start()
 {
     balCon = self.GetComponent <balloonControler>();
 }
コード例 #3
0
ファイル: moveBackground.cs プロジェクト: ginoGraaf/buurman
 // Use this for initialization
 void Start()
 {
     balloonScr = balloonObj.GetComponent <balloonControler>();
 }