Exemplo n.º 1
0
    public void SetNextJumpSetting()
    {
        CurrentJumpSetting = JumpSettings[(JumpSettings.IndexOf(CurrentJumpSetting) + 1) % JumpSettings.Count];
        var newJumpPlaceScale = new Vector3(CurrentJumpSetting.JumpPlaceSize, JumpPlace.localScale.y, CurrentJumpSetting.JumpPlaceSize);

        JumpPlace.DOScale(newJumpPlaceScale, JumpPlaceScaleDuration);
    }
Exemplo n.º 2
0
 public JumpState(PlayerActor actor, JumpSetting setting) : base(actor)
 {
     _setting = setting;
 }
Exemplo n.º 3
0
 public void SetJumpSetting(int jumpSettingNumber)
 {
     CurrentJumpSetting   = JumpSettings[jumpSettingNumber];
     JumpPlace.localScale = new Vector3(CurrentJumpSetting.JumpPlaceSize, JumpPlace.localScale.y, CurrentJumpSetting.JumpPlaceSize);
 }
Exemplo n.º 4
0
 private void Start()
 {
     CurrentJumpSetting = JumpSettings[0];
 }