예제 #1
0
        private void OnEnable()
        {
            #if UNITY_5_4_OR_NEWER
            UnityEngine.Random.InitState(System.DateTime.Now.Millisecond);
            #else
            UnityEngine.Random.seed = System.DateTime.Now.Millisecond;
            #endif
            ToolWasEnabledMessage.SendToInterestedListeners();

            EditorApplication.update -= EditorUpdate;
            EditorApplication.update += EditorUpdate;

            EditorWindowPool.RepaintAll();
        }
예제 #2
0
 private void RespondToMessage(ToolWasEnabledMessage message)
 {
 }
        public static void SendToInterestedListeners()
        {
            var message = new ToolWasEnabledMessage();

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }