12345678910111213141516171819202122232425262728293031 |
- using UnityEngine;
- using UnityEngine.EventSystems;
- using System.Collections;
- using System.Collections.Generic;
- public class DropGold : Drop
- {
- #region 变量
-
- #endregion
- protected override void Awake()
- {
- base.Awake();
- ObjType = ObjType.DropGold;
- }
- public override void OnPointerClick(PointerEventData eventData)
- {
- base.OnPointerClick(eventData);
- int coin = Random.Range(5, 16);
- Award.BonusCoin += coin;
- ManaReso.GetHudText("+" + coin, Color.red, 18, transform, ManaReso.Get("A_HudParent"), true);
- }
- }
|