コード例 #1
0
    private void OnTriggerEnter(Collider other)
    {
        blender = other.GetComponentInParent <BlenderScript>();

        if (blender != null)
        {
            Debug.Log(blender);
            button.blender = blender;
        }
    }
コード例 #2
0
 public void setBlender(BlenderScript blend)
 {
     blender = blend;
 }