Ejemplo n.º 1
0
    public void OnSpawnServer(SpawnInfo info)
    {
        Logger.LogTraceFormat("Spawning {0}", Category.ItemSpawn, GetInstanceID());
        InitStacksWith();
        SyncAmount(amount, initialAmount);
        amountInit = true;

        //check for stacking with things on the ground
        registerTile.WaitForMatrixInit(OnMatrixInit);
    }
Ejemplo n.º 2
0
 public override void OnStartServer()
 {
     itemSlot = itemStorage.GetIndexedItemSlot(0);
     securable.OnAnchoredChange.AddListener(OnSecuredChanged);
     registerTile.WaitForMatrixInit(CheckStartingPlasma);
 }