コード例 #1
0
        private void SetupHumanOrgans()
        {
            ExternalOrgan _head, _torso, _rightarm, _leftarm, _leftleg, _rightleg;

            _head = new Human.Head(this);
            _torso = new Human.Torso(this);
            _rightarm = new Human.RightArm(this);
            _leftarm = new Human.LeftArm(this);
            _rightleg = new Human.RightLeg(this);
            _leftleg = new Human.LeftLeg(this);

            _head.Children.Add(_torso);

            _torso.Parent = _head;
            _torso.Children.Add(_rightarm);
            _torso.Children.Add(_leftarm);
            _torso.Children.Add(_rightleg);
            _torso.Children.Add(_leftleg);

            _rightarm.Parent = _torso;
            _leftarm.Parent = _torso;
            _rightleg.Parent = _torso;
            _leftleg.Parent = _torso;
            


        }
コード例 #2
0
        private void SetupHumanOrgans()
        {
            ExternalOrgan _head, _torso, _rightarm, _leftarm, _leftleg, _rightleg;

            _head     = new Human.Head(this);
            _torso    = new Human.Torso(this);
            _rightarm = new Human.RightArm(this);
            _leftarm  = new Human.LeftArm(this);
            _rightleg = new Human.RightLeg(this);
            _leftleg  = new Human.LeftLeg(this);

            _head.Children.Add(_torso);

            _torso.Parent = _head;
            _torso.Children.Add(_rightarm);
            _torso.Children.Add(_leftarm);
            _torso.Children.Add(_rightleg);
            _torso.Children.Add(_leftleg);

            _rightarm.Parent = _torso;
            _leftarm.Parent  = _torso;
            _rightleg.Parent = _torso;
            _leftleg.Parent  = _torso;
        }