// 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; }