public override void OnInspectorGUI() { m = target as NJGMapOnGUI; base.OnInspectorGUI(); Save(false); serializedObject.ApplyModifiedProperties(); }
protected override void Awake() { mapOnGUI = NJGMapOnGUI.instance; if (iconRoot != null) { iconRoot.localEulerAngles = Vector3.zero; } base.Awake(); }
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; * } * }*/ }