示例#1
0
    void Start()
    {
        player   = GameObject.FindGameObjectWithTag("Player");
        movement = player.GetComponent <NewMovement2D>();

        levelInt = player.GetComponent <LevelInteractions>();
    }
示例#2
0
 void Start()
 {
     timer    = GameObject.FindGameObjectWithTag("TimerHandler");
     timers   = timer.GetComponent <Timers>();
     movement = this.GetComponent <NewMovement2D>();
     raycast  = this.GetComponent <RaycastCollission>();
     _anim.GetComponent <Animator>();
 }