using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CakeCollect : MonoBehaviour
{
public static int c1;
private void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "Cake")
{
c1 = 1;
}
}
public void IntWork()
{
if(c1 == 1)
{
print("yes");
}
}
}