Пример #1
0
 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;
 }
Пример #2
0
    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);
    }
Пример #3
0
 void Awake()
 {
     this.m_GoalVO.m_EPlayer = this.m_EPlayer;
 }