Beispiel #1
0
        public override void OnInspectorGUI()
        {
            EditorGUI.BeginChangeCheck();
            var destruir = EditorGUILayout.ObjectField(null, typeof(GameObject), true) as GameObject;

            if (EditorGUI.EndChangeCheck())
            {
                InstantReplay.DestroyReplayFriendly(destruir);
            }
            GUILayout.Label(este.tInicio + " >>> " + este.stopTime);
            DrawDefaultInspector();
        }
Beispiel #2
0
 private void Awake()
 {
     if (activa)
     {
         Destroy(activa.gameObject);
     }
     activa   = this;
     stopTime = -1f;
     if (controllerVacio != null)
     {
         ControllerVacio = controllerVacio;
     }
 }
Beispiel #3
0
 private void OnEnable()
 {
     este = target as InstantReplay;
 }