public void Awake() { if (Instance != null && Instance != this) { GameObject.Destroy(this); } else { Instance = this; } }
public void Awake() { if (Instance != null && Instance != this) { GameObject.Destroy(this); } else { Instance = this; } mainCamera = Camera.main.transform; currentMessageBoxSize = messageBox.GetComponent <RectTransform>().sizeDelta; UpdateChatSettingInputs(); }