Exemplo n.º 1
0
    void Start()
    {
        gameManager = FindObjectOfType <MyGameManager>();
        gameManager.OnPlaybackModeOn += OnPlaybackModeOn;
        gameManager.OnPlayModeOn     += OnPlayModeOn;

        animator             = GetComponent <Animator>();
        jetpackConfiguration = FindObjectOfType <JetpackConfiguration>();

        playerMovement = GetComponent <PlayerMovement>();
        playerMovement.OnPlayerJump += OnJump;

        replayController = GetComponent <ReplayController>();

        CurrentJumpState = JumpState.flyDown;
    }
Exemplo n.º 2
0
 public JetPackMovementBehavior(JetpackConfiguration jetpackConfiguration)
 {
     this.jetpackConfiguration = jetpackConfiguration;
 }