Ejemplo n.º 1
0
 // Token: 0x06003324 RID: 13092 RVA: 0x000D333C File Offset: 0x000D153C
 public void OnCollectMaxEnergyContainerPickup(MaxEnergyContainerPickup energyContainerPickup)
 {
     energyContainerPickup.Collected();
     Randomizer.getPickup(energyContainerPickup.Bounds.center);
     if (GameWorld.Instance.CurrentArea != null)
     {
         GameWorld.Instance.CurrentArea.DirtyCompletionAmount();
     }
 }
    // Token: 0x06003324 RID: 13092 RVA: 0x000D333C File Offset: 0x000D153C
    public void OnCollectMaxEnergyContainerPickup(MaxEnergyContainerPickup energyContainerPickup)
    {
        int repeatable = Randomizer.RepeatableCheck(energyContainerPickup.Bounds.center);

        if (repeatable != 1)
        {
            Randomizer.getPickup(energyContainerPickup.Bounds.center);
        }
        if (repeatable > 0)
        {
            return;
        }
        energyContainerPickup.Collected();
        if (GameWorld.Instance.CurrentArea != null)
        {
            GameWorld.Instance.CurrentArea.DirtyCompletionAmount();
        }
    }