40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using Cielonos.MainGame.Buffs.Character;
|
|
using Cielonos.MainGame.Inventory;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.MainGame
|
|
{
|
|
public partial class SceneSubmodule
|
|
{
|
|
public partial class CityArenaBeginningProcessor
|
|
{
|
|
public void Process()
|
|
{
|
|
ApplyInvincible();
|
|
ApplyStartItems();
|
|
}
|
|
}
|
|
|
|
public partial class CityArenaBeginningProcessor
|
|
{
|
|
private void ApplyInvincible()
|
|
{
|
|
if (InfoTransistor.GetInfo<bool>("ApplyInvincible"))
|
|
{
|
|
new Invincible(99999f).Apply(MainGameManager.Player);
|
|
}
|
|
}
|
|
|
|
private void ApplyStartItems()
|
|
{
|
|
PlayerInventorySaveData saveData = InfoTransistor.GetInfo<PlayerInventorySaveData>("StartInventory");
|
|
if (saveData != null && MainGameManager.Player != null)
|
|
{
|
|
MainGameManager.Player.inventorySc.ApplySaveData(saveData);
|
|
InfoTransistor.SetInfo<PlayerInventorySaveData>("StartInventory", null);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |