// Use this for initialization void Start() { _gravityScript = new AssemblyCSharp.StoreGravity(gravity, buyGravity, currentGravityLevel, increaseGravityButton, decreaseGravityButton); _speedScript = new AssemblyCSharp.StoreSpeed(speed, buySpeed, currentSpeedLevel, increaseSpeedButton, decreaseSpeedButton); moveCameraScript = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Moveright> (); _cameraAccScript = new AssemblyCSharp.StoreCameraAcceleration(cameraAcc, buyCameraAcc, currentCameraAccLevel, increaseCameraAccButton, decreaseCameraAccButton, moveCameraScript); DisableAllButtons(); GotMoney(); if (_firstRun) { _storeOwnedItems = new List <bool> (); InitializeStoreItems(); InitializeForms(); InitializeHats(); _firstRun = false; } else { shopScrollList.RefreshDisplay(); } InitializeButtons(); //Debug.Log ("I am in Store Start " + _firstRun); //InitializeItems (); //Debug.Log ("Owned forms: " + _ownedForms.Count); //Debug.Log ("Store Owned Forms: " + _storeOwnedItems.Count); }
public StoreCameraAcceleration(float cameraAcc, Button buy, Text text, Button increase, Button decrease, Moveright moveCamera) { _cameraAcc = cameraAcc; _buy = buy; _currentLevelText = text; _increaseButton = increase; _decreaseButton = decrease; _moveCamera = moveCamera; _level = 0; _currentLevel = 0; _currentLevelText.text = "Camera Level: " + _currentLevel.ToString(); }