示例#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);
        }