void Start() { player = FindObjectOfType <AnnaPlayerMovement>(); puzzle4 = FindObjectOfType <Puzzle4>(); sporeSkill = FindObjectOfType <SporesSkill>(); thornsSkill = FindObjectOfType <ThornsSkill>(); rb = GetComponent <Rigidbody>(); AddChildrenNodes(); stunnedCounter = stunnedDuration; waitTimeCounter = waitTimeDuration; knockbackCounter = knockbackDuration; }
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>(); }
// Start is called before the first frame update void Start() { playerStats = FindObjectOfType <PlayerStats>(); thornSkill = FindObjectOfType <ThornsSkill>(); sporeSkill = FindObjectOfType <SporesSkill>(); player = FindObjectOfType <AnnaPlayerMovement>(); rb = GetComponent <Rigidbody>(); randomPatrolSpot = Random.Range(0, patrolspot.Length); stunned = false; knockback = false; distracted = false; patrol = true; }
private void Awake() { thornsSkill = FindObjectOfType <ThornsSkill>(); }