private void OnEnable() { t = target as WorldStateConfig; //if (actions == null) if (autoCalculateOutput) { SetupGOAP(); goapOutput = CalculateGOAP(); } }
public void ResetModel(WorldStateConfig config) { CharacterMaxLife = config.playerMaxLife; CharacterCurrLife = CharacterMaxLife; playerSeriouslyInjured = false; playerBaseAtk = config.playerBaseAtk; currentWeapon = config.currentWeapon; weaponUsesRemaining = config.weaponUsesRemaining; playerGold = config.playerGold; transform.position = startPos; rb.velocity *= 0f; }