コード例 #1
0
    [UnityTest]  //Checks to see whether the glass is draggable at the beginning of the game
    public IEnumerator GlassIsDraggableAtStartOfGame()
    {
        GameObject glass = GameObject.Find("glass");
        GlassDrag  gd    = glass.GetComponent <GlassDrag>();

        Assert.IsTrue(gd.ReturnCanDrag());
        yield return(null);
    }
コード例 #2
0
    void Start()
    {
        glass       = GameObject.Find("glass");
        glassScript = glass.GetComponent <GlassDrag>();

        for (int i = 0; i < waterArray.Length; i++)
        {
            waterArray[i].SetActive(false);
        }
    }