Exemplo n.º 1
0
 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> ();
 }
Exemplo n.º 2
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();
 }
Exemplo n.º 3
0
 public void UpdateContext(ZodiacConnector connector)
 {
     connectContext.text = connector.selectedContextLabel;
     fireContext.text    = connector.fireContextLabel;
 }
Exemplo n.º 4
0
 protected override void OnEnable()
 {
     zodiacConnector = Zodiac.GetZodiacRoot().gameObject.GetComponent <ZodiacConnector> ();
     base.OnEnable();
 }