示例#1
0
    void SetDefaultAtomValues()
    {
        //only on initial plugin add; not during scene reloads
        if (!SuperController.singleton.isLoading)
        {
            if (_femaleAtomJSON.val == null)
            {
                //use containing atom if female, otherwise first female atom

                if (!IsAtomMale(containingAtom))
                {
                    _femaleAtomJSON.val = containingAtom.name;
                }
                else
                {
                    _femaleAtomJSON.val = FemaleAtoms.First().name;
                }
            }

            if (_maleAtomJSON.val == null)
            {
                //use first male atom
                _maleAtomJSON.val = MaleAtoms.First().name;
            }
        }
    }
示例#2
0
    protected void SyncAtomChoices()
    {
        //NOTE: upsteam allowed selecting male or female for both roles, but penis thrust doesn't work for Females
        //TODO: see what can be done for futa/gay animations

        _femaleAtomJSON.choices = FemaleAtoms.Select(a => a.name).ToList();
        _maleAtomJSON.choices   = MaleAtoms.Select(a => a.name).ToList();
    }