コード例 #1
0
    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);
        }
    }
コード例 #2
0
ファイル: SkullObject.cs プロジェクト: kimjunhwi/BlackSmith2
    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);
        }
    }