예제 #1
0
 [ClientRpc] void RpcItemCollected(Item.VegetableType itemType)
 {
     ItemCollected?.Invoke(itemType);
 }
예제 #2
0
    void IncrementItem(Item.VegetableType itemType)
    {
        CountGUI cg = items[(int)itemType].GetComponent <CountGUI>();

        cg.UpdateCount();
    }
예제 #3
0
 [Command] void CmdItemCollected(Item.VegetableType itemType)
 {
     Debug.Log("commanditemcollected: " + itemType);
     RpcItemCollected(itemType);
 }