Пример #1
0
    void Start()
    {
        player   = GameObject.FindGameObjectWithTag("Player");
        movement = player.GetComponent <NewMovement>();

        levelInt = player.GetComponent <LevelInteractions>();
    }
Пример #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;
    }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     rby      = gameObject.GetComponent <Rigidbody2D>();
     levelInt = this.GetComponent <LevelInteractions>();
     _anim.GetComponent <Animator>();
 }