Create Delivery Counter and first Shader
This commit is contained in:
parent
4664a61aa2
commit
7e1cbafa47
14 changed files with 4792 additions and 114 deletions
18
Assets/Scripts/Counters/DeliveryCounter.cs
Normal file
18
Assets/Scripts/Counters/DeliveryCounter.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DeliveryCounter : BaseCounter
|
||||
{
|
||||
public override void Interact(Player player)
|
||||
{
|
||||
if (player.HasKitchenObject())
|
||||
{
|
||||
if (player.GetKitchenObject().TryGetPlate(out PlateKitchenObject plateKitchenObject))
|
||||
{
|
||||
// only takes plate objects
|
||||
player.GetKitchenObject().DestroySelf();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/Counters/DeliveryCounter.cs.meta
Normal file
11
Assets/Scripts/Counters/DeliveryCounter.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6e0c316fb18b8f645beef318c136ce3c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in a new issue