public void OnPointerDown(PointerEventData eventData) { getInfoGameObject = eventData.pointerEnter; if (getInfoGameObject.gameObject == null) { return; } if (getInfoGameObject.gameObject.name == "Skull") { float fCurComplete = repairObj.GetCurCompletion(); float fMaxComplete = GameManager.Instance.bossInfo[1].fComplate; repairObj.SetCurCompletion(-fMaxComplete * 0.06f); skullObjPull.ReturnObject(gameObject); } }
public void OnPointerDown(PointerEventData eventData) { getInfoGameObject = eventData.pointerEnter; if (getInfoGameObject.gameObject == null) { return; } if (getInfoGameObject.gameObject.name == "Skull") { double dCurComplete = repairObj.GetCurCompletion(); double dMaxComplete = dCurComplete; SoundManager.instance.PlaySound(eSoundArray.ES_BossSasinSkullTouch); repairObj.SetCurCompletion(-dMaxComplete * 0.2f); skullObjPull.ReturnObject(gameObject); } }