Пример #1
0
 // Start is called before the first frame update
 void Awake()
 {
     if (birdObject == null)
     {
         birdObject = this;
     }
 }
 private void Start()
 {
     birdController = GetComponent <birdController>();
     rb             = this.GetComponent <Rigidbody2D>();
     dead           = false;
     intento        = 1;
 }