コード例 #1
0
        public void FlowerMode()
        {
            Debug.LogWarning("Your Mario has changed to Flower Mode!");

            _jumpBehaviour   = new MarioJumpBehaviourFlower();
            _fireBehaviour   = new MarioFireBehaviourFlower();
            _rollBehaviour   = new MarioRollBehaviourFlower();
            _crouchBehaviour = new MarioCrouchBehaviourFlower();
        }
コード例 #2
0
        public void SquarrelMode()
        {
            Debug.LogWarning("Your Mario has changed to Squarrel Mode!");

            _jumpBehaviour   = new MarioJumpBehaviourSquarrel();
            _fireBehaviour   = new MarioFireBehaviourSquarrel();
            _rollBehaviour   = new MarioRollBehaviourSquarrel();
            _crouchBehaviour = new MarioCrouchBehaviourSquarrel();
        }
コード例 #3
0
        private void Start()
        {
            Debug.Log("<color=#00FF00>########### Super Mario Bros. ###########</color>");
            Debug.LogWarning("Your Mario is small mode");

            _jumpBehaviour   = new MarioJumpBehaviourSmall();
            _fireBehaviour   = new MarioFireBehaviourSmall();
            _rollBehaviour   = new MarioRollBehaviourSmall();
            _crouchBehaviour = new MarioCrouchBehaviourSmall();
        }