Ejemplo n.º 1
0
        private void CharaSwitch()
        {
            if (cameraTarget && cameraTarget)
            {
                var females      = instance.FemaleList;
                int charaCount   = instance.FemaleList.Count;
                int currentChara = instance.CurrentCharNo;
                int nextChara    = currentChara + 1 > charaCount - 1 ? 0 : currentChara + 1;
                int targetBone   = GetLockOnTarget();

                if (targetBone != -1)
                {
                    instance.SetCurrentCharaController(females.ElementAtOrDefault(nextChara).Value);
                    LockOn(targetBone);
                    CreateInfoMsg("Locked to \"" + instance.CurrentChara.GetStudioFemale().female.customInfo.name + "\"");
                }
            }
            else
            {
                LockOn();
            }
        }