move_cubetornado cubetornadoScript;                         // Reference to script called "move_tornado", reference is assigned to variable cubetornadoScript

    void Start()
    {
        // move_cubetornado script is in another object so we need to find it
        cubetornadoScript = GameObject.Find("Tornado_beefy").GetComponent <move_cubetornado>();

        // Fade object (stars) to invisible, so they can slowly appear when needed
        StartCoroutine(FadeTo(0.0f, 0.5f));
    }
Example #2
0
    move_cubetornado cubetornadoScript;                         // Reference to script called "move_tornado", reference is assigned to variable cubetornadoScript

    void Start()
    {
        // move_cubetornado script is in another object so we need to find it
        cubetornadoScript = GameObject.Find("Tornado_beefy").GetComponent <move_cubetornado>();

        smalltree  = GameObject.Find("toon-pine-tree_small");
        bigtree    = GameObject.Find("toon-pine-tree_big");
        lamp       = GameObject.Find("LampPost");
        dancingman = GameObject.Find("DancingCubeman");
    }