private void Start() { persistentData = dataManager.GetCurrentData(); //endingCode = (persistentData.currentStamina >= PersistentData.SAVE_NUM) ? 1 : 0; animator = GetComponent <Animator>(); StartCutscene(); }
//private bool promptsVisible = true; void Start() { bc = GetComponent <BoxCollider2D>(); touchPlayer = false; currentState = 0; fixTimeFull = fixTime; //button = gameObject.transform.GetChild(0); choicePrompt.transform.localScale = new Vector3(0, 0, 1); //help = gameObject.transform.GetChild(1); helpOffset = helpBubble.transform.localPosition; cm = GameObject.Find("Player").GetComponent <CharacterMovement>(); player = GameObject.Find("Player"); persistentData = dataManager.GetCurrentData(); }
private void Start() { persistentData = dataManager.GetCurrentData(); }
private void Start() { DontDestroyOnLoad(gameObject); persistentData = persistentManager.GetCurrentData(); }
private void Start() { persistentData = dataManager.GetCurrentData(); textScrapSize = GetComponent <TextMeshProUGUI>(); }