private void Start() { currentRotation = transform.rotation; playerMovement = FindObjectOfType <AnnaPlayerMovement>(); shift = transform.position - playerMovement.transform.position; startingShift = transform.position - playerMovement.transform.position; }
private void Start() { panel = this.gameObject; playerMovement = FindObjectOfType <AnnaPlayerMovement>(); this.gameObject.SetActive(true); StartCoroutine(TypingLetters()); }
void Start() { playerStats = FindObjectOfType <PlayerStats>(); playerMovement = FindObjectOfType <AnnaPlayerMovement>(); anim = this.GetComponent <Animator>(); sporeSkill = GetComponent <SporesSkill>(); thornsSkill = GetComponent <ThornsSkill>(); sunflowerSeedSkill = GetComponent <SunflowerSeedProjectile>(); healOverTimer = healOverTimeDelay; //mainCameraAnimator = mainCamera.GetComponent<Animator>(); transitionController = GetComponent <TransitionController>(); }