Ejemplo n.º 1
0
    public void OnTriggerEnterAtFinger(Collider other, PlayerFingerController.RightOrLeft rightOrLeft)
    {
        if (other.tag == "Breast") {
            if (!animator.GetCurrentAnimatorStateInfo(0).IsName("Base Layer.touchOppai.vmd")) {
                animator.SetTrigger("TouchOppai");
            }

        }
        if (other.tag == "Cake") {
            GameObject newCream = null;

            if (rightOrLeft == PlayerFingerController.RightOrLeft.Left) {
                if (leftFingerCream == null) {
                    GameObject CreamPosition = GameObject.Find("LeftCreamPosition");
                    leftFingerCream = (GameObject)Instantiate(Cream, transform.position, Quaternion.identity);
                    newCream = leftFingerCream;
                    newCream.transform.parent = CreamPosition.transform;
                }
            }
            else {
                if (rightFingerCream == null) {
                    GameObject CreamPosition = GameObject.Find("RightCreamPosition");
                    rightFingerCream = (GameObject)Instantiate(Cream, transform.position, Quaternion.identity);
                    newCream = rightFingerCream;
                    newCream.transform.parent = CreamPosition.transform;
                }
            }
            if(newCream != null) {
                newCream.transform.localPosition = Vector3.zero;
                newCream.transform.localRotation = Quaternion.identity;
            }
        }
    }
Ejemplo n.º 2
0
 public void OnTriggerStayAtFinger(Collider other, PlayerFingerController.RightOrLeft rightOrLeft)
 {
 }