Exemplo n.º 1
0
        void UpdateLookSettings()
        {
            if (changingInternally || MiniGrouperScript == null)
            {
                return;
            }

            if (rbLookTowardLeader.Checked)
            {
                MiniGrouperScript.Data.Look = LookTowardMode.Leader;
            }
            else if (rbLookTowardMovement.Checked)
            {
                MiniGrouperScript.Data.Look = LookTowardMode.Movement;
            }
            else if (rbLookTowardNearestOutsider.Checked)
            {
                MiniGrouperScript.Data.Look = LookTowardMode.NearestOutsider;
            }
            else if (rbLookTowardNearestMember.Checked)
            {
                MiniGrouperScript.Data.Look = LookTowardMode.NearestMember;
            }
            else if (rbLookTowardSpecificCreature.Checked)
            {
                MiniGrouperScript.Data.Look = LookTowardMode.Creature;
            }

            MiniGrouperScript.DataChanged();
            MiniGrouperScript.UpdateLook();
        }