// y -100,100 // x 300, 150 private void Awake() { m_Move = gameObject.GetComponent <EnemyActHelper>(); m_Shot = gameObject.GetComponent <BulletShotHelper>(); playerTrasform = GameObject.FindGameObjectWithTag("playerMesh").transform; }
/// <summary> /// 初始化各种成员 /// </summary> private void Init() { baseSpeed = GameData.Instance.Speed; baseNumber = GameData.Instance.BulletNumber; bullets = GameObject.Find("BulletParent"); bullet_Big = Resources.Load<GameObject>("Bullet/Bullet_Cycle_Big"); bullet_Common = Resources.Load<GameObject>("Bullet/Bullet_Cycle_Common"); player_Transform = GameObject.FindWithTag("playerMesh").transform; m_Shot = gameObject.GetComponent<BulletShotHelper>(); m_Move = gameObject.GetComponent<EnemyActHelper>(); m_Transform = gameObject.transform; m_Transform.position = new Vector3(300, 0.0f, 260); m_Transform.rotation = Quaternion.Euler(new Vector3(0.0f, -90f, 90f)); StartCoroutine("StartAct"); }