예제 #1
0
 void Start()
 {
     waGimmmick    = water.GetComponent <WaterGimmick> ();
     clGimmick     = cloud.GetComponent <CloudGimmick> ();
     bigSignAnimaR = GetComponent <Animator> ();
     bigSignAnimaL = bigSignL.GetComponent <Animator> ();
     player        = GameObject.FindGameObjectWithTag("Player");
 }
예제 #2
0
 void Start()
 {
     gController             = gimmickControl.GetComponent <GimmickController> ();
     wGimmick                = waterGimmick.GetComponent <WaterGimmick>();
     player                  = GameObject.FindGameObjectWithTag("Player");       //	プレイヤーを取得
     this.transform.position = player.transform.position + new Vector3(4, 0, 0); //	プレイヤーの頭上らへんに来るようにposition設定
     spRenderer              = GetComponent <SpriteRenderer>();
     spRenderer.color        = new Color(1, 1, 1, 0);                            //	雲のalpha値など
     popUpRainEffect         = Instantiate(nullObj);                             //	用意したnullobjectを代入
 }