Exemple #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;
    }
Exemple #2
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;
    }