void Start()
 {
     EventTire = this.GetEventTire();
     Animator = GetComponent<Animator>();
     EventTire.AddEventListener(TireEventType.ChangedMoveStateEvent, OnPlayerChangedMoveStateEvent);
     EventTire.AddEventListener(TireEventType.ChangedJumpStateEvent, OnPlayerChangedJumpStateEvent);
 }
 void Start()
 {
     EventTire = this.GetEventTire();
     EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
     EventTire.AddEventListener(TireEventType.AmmoPickupEvent, OnAmmoPickupEvent);
     WeaponaryState = GetComponent<WeaponaryState>();
 }
 void Start()
 {
     EventTire = this.GetEventTire();
     BaseMoveState = GetComponent<BaseMoveState>();
     EventTire.AddEventListener(TireEventType.ChangedMoveStateEvent, OnChangedMoveStateEvent);
     EventTire.AddEventListener(TireEventType.ChangedDirectionEvent, OnChangedDirectionEvent);
 }
예제 #4
0
    void Start()
    {
        EventTire = this.GetEventTire();
        BaseState = GetComponent<BaseMoveState>();
        UpperCollider.enabled = true;

        EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
        EventTire.AddEventListener(TireEventType.ChangedSitDownEvent, OnChangedSitDownEvent);
    }
예제 #5
0
    void Start()
    {
        EventTire = this.GetEventTire();
        BaseState = GetComponent<BaseMoveState>();
        Rigidbody = GetComponent<Rigidbody2D>();

        Rigidbody.gravityScale = 1f;
        EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
        EventTire.AddEventListener(TireEventType.ChangedMoveStateEvent, UpdateHorizontalMoveState);
        EventTire.AddEventListener(TireEventType.ChangedShiftWalkEvent, UpdateHorizontalMoveState);
        EventTire.AddEventListener(TireEventType.ChangedJumpStateEvent, OnPlayerChangedJumpStateEvent);
    }
    void Start()
    {
        EventTire = this.GetEventTire();
        Rigidbody = GetComponent<Rigidbody2D>();
        BaseState = GetComponent<BaseMoveState>();
        BaseState.VerticalMoveState = VerticalMoveState.Idle;
        BaseState.MoveState = MoveState.Idle;

        EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
        EventTire.AddEventListener(TireEventType.ChangedMoveStateEvent, UpdateHorizontalMoveState);
        EventTire.AddEventListener(TireEventType.ChangedVerticalMoveStateEvent, UpdateVerticalMoveState);
        EventTire.AddEventListener(TireEventType.ChangedJumpStateEvent, OnPlayerChangedJumpStateEvent);
        Rigidbody.gravityScale = 0f;
    }
    void Start()
    {
        EventTire = this.GetEventTire();
        EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
        EventTire.AddEventListener(TireEventType.SaveWeaponStateEvent, OnSaveWeaponStateEvent);
        EventTire.AddEventListener(TireEventType.LoadWeaponStateEvent, OnLoadWeaponStateEvent);
        EventTire.AddEventListener(TireEventType.WeaponPickupEvent, OnWeaponPickupEvent);

        WeaponaryState = GetComponent<WeaponaryState>();
        if (WeaponaryState.CurrentWeaponIndex >= 0)
        {
            SelectWeapon(WeaponaryState.CurrentWeaponIndex);
        }
    }
 void Start ()
 {
     EventTire = this.GetEventTire();
     Animator = GetComponent<Animator>();
     EventTire.AddEventListener(TireEventType.ChangedCurrentWeapon, OnPlayerChangedCurrentWeapon);
     //EventTire.AddEventListener(TireEventType.WeaponUseStateChangedEvent, OnWeaponUseStateChangedEvent);
 }
 void Start()
 {
     State = GetComponent<WeaponState>();
     EventTire = this.GetEventTire();
     EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
 }
 void Start()
 {
     EventTire = this.GetEventTire();
     BaseMoveState = GetComponent<BaseMoveState>();
     EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
 }
 void Start()
 {
     EventTire = this.GetEventTire();
     EventTire.AddEventListener(TireEventType.ControlEvent, OnControlEvent);
 }