public override void OnCreate() { AIEnemy aiEnemy = GameResources.AIEnemy; Player player = GameResources.Player; base.OnCreate(); if (outIsEnemy) { aiEnemy.UpdateHouseCapacity(outAddValue); } else { player.UpdateHouseCapacity(outAddValue); } }