コード例 #1
0
 private void Start()
 {
     currentRotation = transform.rotation;
     playerMovement  = FindObjectOfType <AnnaPlayerMovement>();
     shift           = transform.position - playerMovement.transform.position;
     startingShift   = transform.position - playerMovement.transform.position;
 }
コード例 #2
0
    private void Start()
    {
        panel          = this.gameObject;
        playerMovement = FindObjectOfType <AnnaPlayerMovement>();

        this.gameObject.SetActive(true);
        StartCoroutine(TypingLetters());
    }
コード例 #3
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>();
    }