Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        Screen.showCursor = false;

        screenCenter = new Vector3(Screen.width / 2, Screen.height / 2, 0f);
        ridingRocket = false;
        isDead       = false;
        stunTimer    = 0f;
        rocketCount  = rocketMax;

        initialConstraints = rigidbody.constraints;

        animation = GetComponentInChildren <Animation>();

        rocket = null;

        boredomClock = (BoredomClock)FindObjectOfType(typeof(BoredomClock));
        timerBar     = (TimerBarBehaviour)FindObjectOfType(typeof(TimerBarBehaviour));

        facingRight = true;
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     boredomClock = (BoredomClock)FindObjectOfType(typeof(BoredomClock));
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     boredomClock = (BoredomClock)FindObjectOfType(typeof(BoredomClock));
     exploded     = false;
 }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        Screen.showCursor = false;

        screenCenter = new Vector3(Screen.width / 2, Screen.height / 2, 0f);
        ridingRocket = false;
        isDead = false;
        stunTimer = 0f;
        rocketCount = rocketMax;

        initialConstraints = rigidbody.constraints;

        animation = GetComponentInChildren<Animation>();

        rocket = null;

        boredomClock = (BoredomClock) FindObjectOfType(typeof(BoredomClock));
        timerBar = (TimerBarBehaviour) FindObjectOfType(typeof(TimerBarBehaviour));

        facingRight = true;
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     boredomClock = (BoredomClock) FindObjectOfType(typeof(BoredomClock));
     exploded = false;
 }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     boredomClock = (BoredomClock) FindObjectOfType(typeof(BoredomClock));
 }