예제 #1
0
 public override void _Process(float delta)
 {
     if (Position.x + Camera.ScreenSize.x < Camera.Position.x)
     {
         OutOfScreen?.Invoke(this);
         QueueFree();
     }
 }
예제 #2
0
 void CheckOutOfScreen()
 {
     if (transform.position.y < bottomY)
     {
         isActivated = false;
         OutOfScreen?.Invoke(this);
     }
 }