protected override void Start()
    {
        base.Start();

        canAirDash = true;

        jumpBufferTimer = 0d;
        jumpInputBuffer = false;
        combatTimer     = 0d;
        isInCombat      = false;

        isChargedCrouching        = false;
        crouchingChargeTimer      = 0d;
        isChargedStanding         = false;
        standingChargeTimer       = 0d;
        isChargedCrouchingGuard   = false;
        crouchingGuardChargeTimer = 0d;
        isChargedStandingGuard    = false;
        standingGuardChargeTimer  = 0d;

        canSwitchWeapon   = true;
        switchWeaponTimer = 0d;

        weapons.SetPrimaryWeaponSprite(playerCharacterData.GetPrimaryWeapon());
        weapons.SetSecondaryWeaponSprite(playerCharacterData.GetSecondaryWeapon());
    }
예제 #2
0
 //constructor
 public SaveData(WorldData worldData, PlayerCharacterData playerCharacterData)
 {
     // World Data
     this.worldType      = worldData.GetWorldType();
     this.gameEnding     = worldData.GetGameEnding();
     this.bossesDefeated = worldData.GetBossesDefeated();
     this.finishGameTime = worldData.GetFinishGameTime();
     this.playTime       = worldData.GetPlayTime();
     // Player Character Persistent Data
     this.currentHP          = playerCharacterData.GetCurrentHP();
     this.primaryWeapon      = playerCharacterData.GetPrimaryWeapon();
     this.secondaryWeapon    = playerCharacterData.GetSecondaryWeapon();
     this.locationSceneIndex = playerCharacterData.GetLocationSceneIndex();
 }
예제 #3
0
 public void UpdateWeaponSprite()
 {
     SetPrimaryWeaponSprite(playerCharacterData.GetPrimaryWeapon());
     SetSecondaryWeaponSprite(playerCharacterData.GetSecondaryWeapon());
 }