Ejemplo n.º 1
0
 void Start()
 {
     player      = FindObjectOfType <AnnaPlayerMovement>();
     puzzle4     = FindObjectOfType <Puzzle4>();
     sporeSkill  = FindObjectOfType <SporesSkill>();
     thornsSkill = FindObjectOfType <ThornsSkill>();
     rb          = GetComponent <Rigidbody>();
     AddChildrenNodes();
     stunnedCounter   = stunnedDuration;
     waitTimeCounter  = waitTimeDuration;
     knockbackCounter = knockbackDuration;
 }
Ejemplo n.º 2
0
    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>();
    }
Ejemplo n.º 3
0
    // 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;
    }