Ejemplo n.º 1
0
    private void Start()
    {
        gunHolderLeft  = GameObject.Find("Weapon Holder Left").transform;
        gunHolderRight = GameObject.Find("Weapon Holder Right").transform;
        gdm            = FindObjectOfType <GameDownManager>();
        gm             = FindObjectOfType <Gamemode>();
        dm             = FindObjectOfType <DialogueManager>();
        ss             = FindObjectOfType <ScreenShake>();
        name           = "Player";
        rb             = GetComponent <Rigidbody2D>();
        sr             = GetComponentInChildren <SpriteRenderer>();

        gdm.playerDied = false;
        dm.choices.SetActive(false);
        gm.Reset();

        // turn off loading text
        gm.loadingText.gameObject.SetActive(false);
    }