Example #1
0
    public override void OnCreate()
    {
        AIEnemy aiEnemy = GameResources.AIEnemy;
        Player  player  = GameResources.Player;

        base.OnCreate();

        if (outIsEnemy)
        {
            aiEnemy.UpdateHouseCapacity(outAddValue);
        }
        else
        {
            player.UpdateHouseCapacity(outAddValue);
        }
    }