Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     controller = (ShootingSceneController)FindObjectOfType(typeof(ShootingSceneController));
     score      = GetComponent <Text>();
     scoreValue = controller.GetScore();
     fixedText  = score.text;
 }
Пример #2
0
 void Start()
 {
     player     = GameObject.FindGameObjectWithTag("Player").transform;
     target     = new Vector2(player.position.x, player.position.y);
     controller = (ShootingSceneController)FindObjectOfType(typeof(ShootingSceneController));
 }
Пример #3
0
 virtual protected void Init()
 {
     controller = (ShootingSceneController)FindObjectOfType(typeof(ShootingSceneController));
 }
Пример #4
0
 void Start()
 {
     controller = (ShootingSceneController)FindObjectOfType(typeof(ShootingSceneController));
 }
Пример #5
0
 // Start is called before the first frame update
 void Start()
 {
     rb           = GetComponent <Rigidbody2D>();
     controller   = (ShootingSceneController)FindObjectOfType(typeof(ShootingSceneController));
     timeToAttack = Random.Range(0f, attackTimer);
 }