Exemple #1
0
        public void SwitchGear(short gearType, int optParam)
        {
            if (Gear.Active)
            {
                Gear.End();
            }
            var gearIndex = Pet.Gears.FindIndex(x => (short)x.Type == gearType);

            Gear = Pet.Gears[gearIndex];
            Gear.Activate();
        }