コード例 #1
0
    void drink()
    {
        mugHolder = coaster.GetComponent <holdMug>();
        mug       = mugHolder.mug.GetComponent <mugInventory>();

        StartCoroutine(wait());
    }
コード例 #2
0
 void Push()
 {
     transform.localPosition = pushedLocation;
     if (machineScript.holding())
     {
         mugHolder = machineScript.getMug().GetComponent <mugInventory>();
         mugHolder.addIngredient(type);
         liquid.SetActive(true);
         src.Play();
     }
 }