Example #1
0
    protected override void Start()
    {
        base.Start();

        uiHandler = GameObject.Find("UI Handler").GetComponent <PauseMenuInputScript>();
        CheckReoccur();
    }
Example #2
0
 // 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;
 }
Example #3
0
    // 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;
    }
Example #4
0
    private void Start()
    {
        uiHandler = GameObject.Find("UI Handler").GetComponent <PauseMenuInputScript>();

        CheckReoccur();
    }
Example #5
0
 private void OnDestroy()
 {
     Instance = null;
 }