コード例 #1
0
ファイル: Enemy.cs プロジェクト: feathershine/FloatBall
 void Start()
 {
     //status = Status.Normal;
     ismoving     = false;
     speed        = 2.5f;
     enemyControl = GameObject.Find("Main Camera").GetComponent <EnemyControler>();
     dataRecorder = GameObject.Find("Main Camera").GetComponent <DataRecorder>();
     playerobj    = GameObject.FindGameObjectWithTag("Player");
     enemyGun     = gameObject.GetComponent <ShootControler>();
 }
コード例 #2
0
 void Start()
 {
     //canshot = true;
     playergun   = gameObject.GetComponent <ShootControler>();
     playerspeed = gameObject.GetComponent <Player>().Speed;
 }