public void Initialize(Vector2 _Position, GameManager.EPlayer _EPlayer) { this.m_EPlayer = _EPlayer; this.transform.position = _Position; this.m_PositionSave = this.transform.position; this.m_Move.x = this.m_ShootSpeed; }
public void Shoot(GameManager.EPlayer _Player) { GameObject lShoot = this.m_ShootsPool.GetObject(); lShoot.GetComponent <Shoot>().Initialize(this.transform.position, this.m_Player.GetComponent <PlayerController>().m_Player); if (_Player == GameManager.EPlayer.Player2) { lShoot.GetComponent <Shoot>().SetMoveDirection(-1); } lShoot.GetComponent <Shoot>().SetVerticalPosition(this.m_Player.transform.position.y); lShoot.GetComponent <Shoot>().m_DisableEvent += this.OnDisableShoot; this.m_ShootsList.Add(lShoot); }
void Awake() { this.m_GoalVO.m_EPlayer = this.m_EPlayer; }