public void Awake()
 {
     animator = GetComponent<PlayerAnimationBehavior>();
     actor = GetComponent<ActorBehaviour>();
     actor.setSpeed(speed);
     physicsmg = GetComponent<PhysicsManager>();
 }
Ejemplo n.º 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);
    }
Ejemplo n.º 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);
    }