public void Awake()
 {
     animator = GetComponent<PlayerAnimationBehavior>();
     actor = GetComponent<ActorBehaviour>();
     actor.setSpeed(speed);
     physicsmg = GetComponent<PhysicsManager>();
 }
예제 #2
0
    public void Awake()
    {
        actor    = GetComponent <ActorBehaviour>();
        recorder = GetComponent <RecordBehavior>();
        hud      = GetComponent <PlayerHUD>();

        // Record Player Start Position when the Scene Starts
        PlyrStartPos = GetComponent <Transform>().position;

        actor.setSpeed(speed);
        actor.setJumpForce(jumpForce);
    }
예제 #3
0
    public void Awake()
    {
        actor = GetComponent<ActorBehaviour>();
        recorder = GetComponent<RecordBehavior>();
        hud = GetComponent<PlayerHUD>();

        // Record Player Start Position when the Scene Starts
        PlyrStartPos = GetComponent<Transform>().position;

        actor.setSpeed(speed);
        actor.setJumpForce(jumpForce);
    }