コード例 #1
0
 //
 void Start()
 {
     //Setting Variables
     inStorm = false;
     level = 0;
     soundScript = this.gameObject.GetComponent<SoundManager>();
     soundScript.PlaySound(0, true, 0.1f);
     soundScript.PlaySound(1, true, 0.1f);
     ballonManagerScript = ballonManager.GetComponent<BallonManager>();
     clouds = (GameObject)GameObject.Instantiate(menuDeco);
     clouds.transform.position = cloudsPos.position;
     provisorio = "";
     scoreScript = score.GetComponent<ScoreManipulator>();
 }
コード例 #2
0
ファイル: Hud.cs プロジェクト: rainbow23/CrasherBalloonGit
 void Start()
 {
     bManager = balloonsManager.GetComponent<BallonManager>();
     menuScript = Camera.mainCamera.GetComponent<MenuManipulator>();
     scoreScript = score.GetComponent<ScoreManipulator>();
 }