Exemple #1
0
 void Start()
 {
     timer    = GameObject.FindGameObjectWithTag("TimerHandler");
     timers   = timer.GetComponent <Timers>();
     movement = this.GetComponent <NewMovement2D>();
     raycast  = this.GetComponent <RaycastCollission>();
     _anim.GetComponent <Animator>();
 }
Exemple #2
0
    void Start()
    {
        rby      = gameObject.GetComponent <Rigidbody2D>();
        _rendy   = gameObject.GetComponent <SpriteRenderer>();
        levelInt = this.GetComponent <LevelInteractions>();
        _anim.GetComponent <Animator>();
        raycast = this.GetComponent <RaycastCollission>();

        _startPos = _player.transform.position;
    }