mirror of
https://github.com/celisej567/forest.git
synced 2026-01-05 06:10:38 +03:00
20 lines
415 B
C#
20 lines
415 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class mainstick : MonoBehaviour
|
|
{
|
|
public Fireplace Firething;
|
|
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
if(other.tag == "Player")
|
|
{
|
|
other.GetComponent<PlayerMovement>().stickCount += 1;
|
|
GameObject.Destroy(gameObject);
|
|
|
|
}
|
|
}
|
|
}
|