void Start()
 {
     m_ToolMenu    = instantiateMenuUI(rayOrigin, m_MenuPrefab);
     m_connectMenu = m_ToolMenu.GetComponent <ZodiacConnectMenu> ();
     this.ConnectInterfaces(m_connectMenu, rayOrigin);
     m_connectMenu.fire = m_zodiacConnector.Fire;
     m_zodiacConnector  = Zodiac.GetZodiacRoot().GetComponent <ZodiacConnector> ();
 }
Exemple #2
0
        //standalone properties
        public override void InstantiateListener(object sender, PrimitiveEventArgs e)
        {
            var instance = CreateMonoObject(e.componentType, Zodiac.GetZodiacRoot());

            if (e.componentType.IsSubclassOf(typeof(MemberMono)))
            {
                ((MemberMono)instance).StandaloneInit(CreateUnityObjectPointer(instance));
            }
            else
            {
                //standalone Init
                instance.Init();
            }
        }
Exemple #3
0
 protected override void OnGUI()
 {
     base.OnGUI();
     if (zodiacConnector == null)
     {
         zodiacConnector = Zodiac.GetZodiacRoot().gameObject.GetComponent <ZodiacConnector> ();
     }
     zodiacConnector.enabled = EditorGUILayout.Toggle("Enabled", zodiacConnector.enabled);
     if (!zodiacConnector.enabled || !zodiacConnector)
     {
         return;
     }
     drawContext();
     drawSelected();
 }
 public override void Setup()
 {
     base.Setup();
     zodiacCreator = Zodiac.GetZodiacRoot().GetComponent <ZodiacCreator> ();
     OnSelectionChanged();
 }
 protected override void OnEnable()
 {
     zodiacCreator = Zodiac.GetZodiacRoot().gameObject.GetComponent <ZodiacCreator> ();
     base.OnEnable();
 }