protected override void Start() { base.Start(); uiHandler = GameObject.Find("UI Handler").GetComponent <PauseMenuInputScript>(); CheckReoccur(); }
// Start is called before the first frame update protected override void Start() { base.Start(); uiHandler = GameObject.Find("UI Handler").GetComponent <PauseMenuInputScript>(); thisSavePoint = new IdolSavePoint(); thisSavePoint.roomName = gameObject.scene.name; thisSavePoint.location = transform.position; }
// Start is called before the first frame update void Start() { if (!Instance) { Instance = this; } player = GameObject.FindGameObjectWithTag("Player"); playerController = player.GetComponent <PlayerControllerScript>(); characterNamePos = characterName.GetComponent <RectTransform>(); dialoguePos = dialogue.GetComponent <RectTransform>(); imagePos = characterImage.GetComponent <RectTransform>(); Vector2 spawnPos = new Vector2(-200, 130); for (int i = 0; i < ((float)playerController.currentMaxHealth) / 2; i++) { GameObject healthIcon = (GameObject)Instantiate(healthPrefab, dialogueBox.transform.parent); healthIcon.transform.localPosition = spawnPos; spawnPos.x += 35; healthIcons.Add(healthIcon.GetComponent <Image>()); } healthIndex = playerController.currentMaxHealth; }
private void Start() { uiHandler = GameObject.Find("UI Handler").GetComponent <PauseMenuInputScript>(); CheckReoccur(); }
private void OnDestroy() { Instance = null; }