Пример #1
0
 void Start()
 {
     enemyAttributes = GetComponent <_enemyAttributes>();
     playerBehavior  = GameObject.FindGameObjectWithTag("Player").GetComponent <_playerBehavior>();
 }
Пример #2
0
 void Start()
 {
     enemyAttributes = GetComponent <_enemyAttributes>();
     _rigidbody      = GetComponent <Rigidbody2D>();
     player          = GameObject.FindGameObjectWithTag("Player");
 }