Exemplo n.º 1
0
 protected override void Awake()
 {
     // Try finding the cooldown handler
     if (this.cooldownHandle == null)
     {
         this.cooldownHandle = this.gameObject.GetComponent <RnMUI_SlotCooldown>();
     }
     if (this.cooldownHandle == null)
     {
         this.cooldownHandle = this.gameObject.GetComponentInChildren <RnMUI_SlotCooldown>();
     }
 }
Exemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        EditorGUIUtility.labelWidth = 120f;
        RnMUI_SpellSlot mSlot = target as RnMUI_SpellSlot;

        EditorGUILayout.Space();

        RnMUI_SlotCooldown cooldown = EditorGUILayout.ObjectField("Cooldown Handle", mSlot.cooldownHandle, typeof(RnMUI_SlotCooldown), true) as RnMUI_SlotCooldown;

        if (mSlot.cooldownHandle != cooldown)
        {
            mSlot.cooldownHandle = cooldown;
        }

        DrawEvents();
    }