Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        m = target as NJGMapOnGUI;
        base.OnInspectorGUI();

        Save(false);
        serializedObject.ApplyModifiedProperties();
    }
Esempio n. 2
0
 protected override void Awake()
 {
     mapOnGUI = NJGMapOnGUI.instance;
     if (iconRoot != null)
     {
         iconRoot.localEulerAngles = Vector3.zero;
     }
     base.Awake();
 }
Esempio n. 3
0
    protected override void Awake()
    {
        base.Awake();

        mapOnGUI = NJGMapOnGUI.instance;

        /*if (iconRoot != null)
         * {
         *      if (iconRoot.GetComponent<GUIAnchor>() == null)
         *      {
         *              GUIAnchor a = iconRoot.gameObject.AddComponent<GUIAnchor>();
         *              a.transformContainer = rendererTransform;
         *              a.side = GUIAnchor.Side.Center;
         *      }
         * }*/
    }