Beispiel #1
0
        // Use this for initialization
        void Start()
        {
            //get cameras
            go = this.gameObject;
            //cam_top = GameObject.Find("cam_top").gameObject;


            controller = ProductSelectController.instance;
            //default starting position for camera
            locator2 = new GameObject();
            //starting position
            locator2.transform.Translate(new Vector3(horizontalBound, verticalBound, distance));
        }
Beispiel #2
0
 void Awake()
 {
     // allowsyou to call the singleton class from anywhere inside any script in current scene where
     // this script is attach to
     instance = this;
 }
        // Use this for initialization
        void Start()
        {
            //get cameras
            go = this.gameObject;
            //cam_top = GameObject.Find("cam_top").gameObject;

            controller = ProductSelectController.instance;
            //default starting position for camera
            locator2 = new GameObject();
            //starting position
            locator2.transform.Translate(new Vector3(horizontalBound, verticalBound, distance));
        }
 void Awake()
 {
     // allowsyou to call the singleton class from anywhere inside any script in current scene where
     // this script is attach to
     instance = this;
 }