온라인 구현

This commit is contained in:
김도환
2026-05-01 05:47:12 +09:00
parent 5695b4036f
commit a36270f77a
996 changed files with 267058 additions and 75 deletions

View File

@@ -0,0 +1,22 @@
using UnityEngine;
namespace Photon.Chat.DemoChat.Utilities
{
/// <summary>This component will enable (setactive) the Target GameObject (or the one it is attached to).</summary>
public class EnableOnStart : MonoBehaviour
{
[Tooltip("If null, this game object becomes active in this Start().")]
public GameObject Target; // set in inspector
void Start()
{
if (this.Target == null)
{
this.Target = this.gameObject;
}
this.Target.SetActive(true);
}
}
}