private void Start() { if (PlayerDeath.scene.Equals("Scene2D")) { tutorial = 1; keyController = FindObjectOfType <KeyController>(); } else if (PlayerDeath.scene.Equals("BossPhase")) { tutorial = 4; boss = FindObjectOfType <BoneDragonController>(); } }
// Use this for initialization void Start() { key = FindObjectOfType <KeyController>(); anim = GetComponent <Animator>(); }