private void Start()
        {
            character  = GetComponent <CharacterController>();
            detector   = GetComponent <IGroundingDetector3D>();
            cameraman  = new CameraAngleCalculator3D(face, this.gameObject, VirtualStickR);
            frictioner = new AdoptiveFriction(this.gameObject, detector);

            // 移動量を計算するクラスをそれぞれここで登録する。
            calculators = new List <IMovementCalculator3D>();
            calculators.Add(new GravityCalculator3D(detector));
            calculators.Add(new WalkCalculator3D(this.gameObject, VirtualStickL));
        }
Example #2
0
        private void Start()
        {
            var character = GetComponent <CharacterController>();

            information = new AthleteInformation(character, Face);
            detector    = new GroundingDetector(information);
            frictioner  = new AdoptiveFriction();
            director    = new FaceAngleDirector();

            motors       = new List <IAthleteMotor>();
            gravityMotor = new GravityMotor();
            walkMotor    = new WalkMotor();
            motors.Add(gravityMotor);
            motors.Add(walkMotor);
        }