Example #1
0
    // Use this for initialization
    void Start()
    {
        //GameObject ObjectEmpty = (GameObject)Resources.Load("ObjectEmpty");

        ObjectEmpty = GameObject.Find("/ObjectEmpty");
        objCreaterScript = (objCreater)ObjectEmpty.GetComponent("objCreater");
    }
Example #2
0
    void Start()
    {
        ObjectEmpty = GameObject.Find("/ObjectEmpty");
        objCreaterScript = (objCreater)ObjectEmpty.GetComponent("objCreater");

         		// ball initial position
        this.transform.position = ballPosition;
        this.rigidbody.velocity = ballVelocity;
    }