コード例 #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));
        }
コード例 #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;
 }
コード例 #3
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));
        }
コード例 #4
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;
 }