示例#1
0
 public override void OnUpdate(float deltaTime)
 {
     if (Collider.Collision(collider, player.collider))
     {
         player.ammoCount.Reset();
         PickupManager.DestroyAmmo(this);
     }
     base.OnUpdate(deltaTime);
     collider.SetPosition(Position);
 }