public class Blank : Photon.PunBehaviour
instead of mono behavior, use this to receive photon callbacks in your script.
public override void OnLeftRoom()
An example of overriding a punbehavior callback
| //How to USe: | |
| private Texture2D icon_PlayButton = null; | |
| private Texture2D icon_Refresh = null; | |
| private GUIContent iconGUI_PlayButton; | |
| private GUIContent iconGUI_Refresh; | |
| private void InitStyles() | |
| { | |
| icon_PlayButton = EditorGUIUtility.IconContent("PlayButton").image as Texture2D; |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| // TData should be a plain class or struct with the [System.Serializable] attribute. | |
| // TData can implement ISerializationCallbackReceiver if needed for more advanced uses. | |
| public class PlainDataInstancer<TData> : ScriptableObject | |
| { | |
| private static bool s_DataTypeValidated; | |
| [SerializeField] private TData m_PrototypeData; |