Beispiel #1
0
 void Update()
 {
     transform.Translate(Vector3.left * Time.deltaTime * Speed, Space.World);
     if (transform.position.x < -15)
     {
         transform.position += new Vector3(30, 0, 0);
         showRandomSprite();
         enemy?.Respawn();
     }
 }