Ejemplo n.º 1
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.º 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);
    }