Esempio 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);
    }
Esempio 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);
    }
Esempio n. 3
0
 /// <summary>
 /// Sets the record behavior.
 /// </summary>
 /// <param name="behavior">Behavior to adopt.</param>
 public void SetRecordBehavior(RecordBehavior behavior)
 {
     _recordBehavior = behavior;
 }