Beispiel #1
0
        public void LogControlModeSwitch(SelectorPart p)
        {
            string s = SelectorManager.Instance.CurrentControlMode == SelectorManager.ControlMode.CreationMode ? "CRMODE_IN," : "CRMODE_OUT,";

            s += colorString[(int)SelectorManager.Instance.CurrentColor] + ',';
            LogEvent(s + p.GetLogString());
        }
Beispiel #2
0
        public void LogPersistentAdded(SelectorPart p)
        {
            string s = "+PRST,";

            for (int i = 0; i < 3; i++)
            {
                s += p.PrimitiveTransform.position[i].ToString(nfi) + ',';
            }
            for (int i = 0; i < 3; i++)
            {
                s += p.PrimitiveTransform.eulerAngles[i].ToString(nfi) + ',';
            }
            s += colorString[(int)SelectorManager.Instance.CurrentColor] + ',';
            s += p.GetLogString();
            LogEvent(s);
        }