void INotifyOwnerChanged.OnOwnerChanged(Actor self, Player oldOwner, Player newOwner) { fuelReserve.RemoveCapacity(info.Capacity); fuelReserve = newOwner.PlayerActor.Trait <Fueltank>(); fuelReserve.AddCapacity(info.Capacity); }
void INotifyCreated.Created(Actor self) { fuelReserve.AddCapacity(info.Capacity); }