campfire/Assets/Scripts/DebuggingSteve.cs

19 lines
389 B
C#
Raw Normal View History

2020-04-20 03:55:29 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DebuggingSteve : MonoBehaviour {
public Lorax Lorax;
public bool Reveal;
void Update() {
if (Reveal) {
Reveal = false;
var chunk = Lorax.GetChunkAt(transform.position.x, transform.position.z);
chunk.SetActive(true);
}
}
}