This commit is contained in:
Nim XD
2024-08-27 21:01:33 +05:30
parent 99eaf514fd
commit 121a1b7c73
31803 changed files with 623461 additions and 623399 deletions

View File

@@ -1,33 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class roomChecker : MonoBehaviour
{
public GameObject outerGrid;
public GameObject caveGrid;
private void OnTriggerEnter2D(Collider2D other) {
if(other.tag == "Player"){
if(other.transform == playerNetwork.localPlayerTransform){
outerGrid.SetActive(false);
caveGrid.SetActive(true);
}
}
}
private void OnTriggerExit2D(Collider2D other) {
if(other.tag == "Player"){
if(other.transform == playerNetwork.localPlayerTransform){
outerGrid.SetActive(true);
caveGrid.SetActive(false);
}
}
}
void Update()
{
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class roomChecker : MonoBehaviour
{
public GameObject outerGrid;
public GameObject caveGrid;
private void OnTriggerEnter2D(Collider2D other) {
if(other.tag == "Player"){
if(other.transform == playerNetwork.localPlayerTransform){
outerGrid.SetActive(false);
caveGrid.SetActive(true);
}
}
}
private void OnTriggerExit2D(Collider2D other) {
if(other.tag == "Player"){
if(other.transform == playerNetwork.localPlayerTransform){
outerGrid.SetActive(true);
caveGrid.SetActive(false);
}
}
}
void Update()
{
}
}