示例#1
0
 /// <summary>
 /// Creates a new instance of the
 /// <see cref="SpringAir.Domain.Trip"/> class.
 /// </summary>
 /// <param name="mode">
 /// The desired trip mode (one way or return).
 /// </param>
 /// <param name="startingFrom">
 /// The airport, date and time from where and when the journey is to start.
 /// </param>
 /// <param name="returningFrom">
 /// The airport, date and time from where and when the return journey is to start.
 /// </param>
 public Trip(TripMode mode, TripPoint startingFrom, TripPoint returningFrom)
 {
     this.mode = mode;
     this.startingFrom = startingFrom;
     this.returningFrom = returningFrom;
 }
示例#2
0
 /// <summary>
 /// Creates a new instance of the
 /// <see cref="SpringAir.Domain.Trip"/> class.
 /// </summary>
 /// <param name="mode">
 /// The desired trip mode (one way or return).
 /// </param>
 /// <param name="startingFrom">
 /// The airport, date and time from where and when the journey is to start.
 /// </param>
 /// <param name="returningFrom">
 /// The airport, date and time from where and when the return journey is to start.
 /// </param>
 public Trip(TripMode mode, TripPoint startingFrom, TripPoint returningFrom)
 {
     this.mode          = mode;
     this.startingFrom  = startingFrom;
     this.returningFrom = returningFrom;
 }
示例#3
0
    // Use this for initialization
    void Start()
    {
        currentHealth = maxHealth;
        currentEnergy = maxEnergy;
        aCalib = Input.acceleration;
        score = 0;
        streak = 0;
        controller = GetComponent<CharacterController> ();
        //Pause.setPause(false);

        comboScript = GetComponent<Combo> ();

        //cheat detect
        hasCheated = false;
        scoreCheck = cheatOffset;
        numTimesIncrementScore = 0;
        changingScore = false;
        tongue = GameObject.Find ("Tongue").GetComponent<NewTongue> ();

        LastState = PlayerAnimator.PlayerState.TongueIn;
        _state = PlayerAnimator.PlayerState.TongueIn;
        tripMode = GetComponent<TripMode> ();
    }