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>(); }
void Start() { //canshot = true; playergun = gameObject.GetComponent <ShootControler>(); playerspeed = gameObject.GetComponent <Player>().Speed; }