Exemplo n.º 1
0
    public void Grow(GameObject watermelon)
    {
        watermelon script = watermelon.GetComponent <watermelon> ();

        if (script.Stage == 2)
        {
            script.GrowUp();
        }
    }
Exemplo n.º 2
0
    public void grow(GameObject flower)
    {
        print("Mutong: grow()");
        watermelon script = flower.GetComponent <watermelon>();

        if (script.Stage >= 0 && script.Stage <= 1)
        {
            script.GrowUp();
        }
    }