Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        isRight   = true;
        gravityOn = true;

        popUpExeR = false;
        popUpExeL = false;
        popUpZipR = false;
        popUpZipL = false;

        weakSpotTimer = WEAKSPOTTIME;

        rb = GetComponent <Rigidbody>();

        popUpTextActive = false;

        popUPExeRTime = popUPExeLTime = popUPZipRTime = popUPZipLTime = MAXPOPUPTEXTTIME;

        //popUpText.GetComponent<CanvasGroup>().alpha = 0.0f;
        popUpZipLeft.GetComponent <CanvasGroup>().alpha  = 0.0f;
        popUpZipRight.GetComponent <CanvasGroup>().alpha = 0.0f;
        popUpExeRight.GetComponent <CanvasGroup>().alpha = 0.0f;
        popUpExeLeft.GetComponent <CanvasGroup>().alpha  = 0.0f;
        popUpPostMenu.GetComponent <CanvasGroup>().alpha = 0.0f;

        rb.transform.position            = new Vector3(4.0f, -3.88f, 0.0f);
        weakSpot.transform.localPosition = Vector3.zero;

        globalMusic = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        timeCounter = 0.0f;

        bombCreation = GetComponent <BombCreation>();
        music        = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        isGrounded  = false;
        justLanded  = true;
        gravityOn   = true;
        firstUpdate = false;

        gunOffset = new Vector3(0.0f, 0.75f, 0.50f);        //.02
        xSpeed    = 5;
        xMove     = 0.0f;

        jumpHeight    = STARTINGJUMPHEIGHT;
        jumpIncrease  = MAXJUMPINC;
        jumpFloatTime = MAXJUMPFLOATTIME;
        jumpTime      = MAXJUMPTIME;

        firstUpdateCounter = 0;

        input       = GetComponent <PlayerInput>();
        powers      = GetComponent <PlayerPowers>();
        wallJumping = GetComponent <WallJumping>();
        _HUD        = GetComponent <PlayerHUD>();
        anim        = GetComponent <AnimatorScript>();

        globals     = GameObject.Find("_Globals").GetComponent <GlobalsScript>();
        globalMusic = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
        changeMusic = GameObject.Find("GlobalMusicChanger").GetComponent <ChangeVolumeGlitchMusic>();

        rb = GetComponent <Rigidbody>();
        rb.angularVelocity = Vector3.zero;
        rb.freezeRotation  = true;
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        bounces       = 0;
        bounceCounter = 0.0f;
        groundCounter = 0.0f;

        hitGround = false;
        music     = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
    }
Ejemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        start               = false;
        startDisappear      = false;
        isDisappeared       = false;
        isDiappearedCounter = 0.0f;
        timer               = 0.0f;
        alpha               = 1.0f;

        music = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
    }
Ejemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        rb      = GetComponent <Rigidbody>();
        globals = GameObject.Find("_Globals").GetComponent <GlobalsScript>();
        music   = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();

        if (respawn && globals.lastCheckpointPos == respawnLoc)
        {
            Destroy(enemy);
        }

        jumpCounter = 0;
        isRight     = true;
    }
Ejemplo n.º 7
0
    void Start()
    {
        frontHit = false;
        backHit  = false;

        knockBack = false;

        isColliding = false;
        health      = MAX_HEALTH;

        input  = GetComponent <PlayerInput>();
        invinc = GetComponentInChildren <InvincibililtyScript>();
        music  = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();

        normalPic.GetComponent <CanvasGroup>().alpha   = 1.0f;
        glitchedPic.GetComponent <CanvasGroup>().alpha = 0.0f;
    }
Ejemplo n.º 8
0
    // Use this for initialization
    void Start()
    {
        normalSize    = true;
        canTakeDamage = false;
        explosion     = false;

        phaseNum = 0;

        dom.transform.localPosition  = DOMSTARTPOS;
        pawn.transform.localPosition = PAWNSTARTPOS;
        bulb.transform.localPosition = BULBSTARTPOS;
        //bulb.transform.localEulerAngles = BULBSTARTANGLE;

        pattern1.active = false;
        pattern2.active = false;
        pattern3.active = false;
        pattern4.active = false;

        globalMusic = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
    }
Ejemplo n.º 9
0
    // Use this for initialization
    void Start()
    {
        canMove                 = true;
        phase                   = false;
        glide                   = false;
        jump                    = false;
        isWallJump              = false;
        debugOptions            = true;
        startingKanimiCode      = false;
        differentShootingButton = false;
        firstClingUpdate        = 0;
        canMoveCounter          = 0.0f;

        stopRumble();

        physics     = GetComponent <PlayerPhysics>();
        powers      = GetComponent <PlayerPowers>();
        wallJumping = GetComponent <WallJumping>();
        anim        = GetComponent <AnimatorScript>();
        globals     = GameObject.Find("_Globals").GetComponent <GlobalsScript>();
        globalMusic = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();

        globals.playerInputEnabled = true;
    }
Ejemplo n.º 10
0
 private void Start()
 {
     musicscript  = (GlobalMusicScript)FindObjectOfType(typeof(GlobalMusicScript));
     patrolscript = (GlobalPatrolSystem)FindObjectOfType(typeof(GlobalPatrolSystem));
 }
Ejemplo n.º 11
0
 // Use this for initialization
 void Start()
 {
     globalMusic  = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
     healthpoints = MAXHEALTHPOINTS;
 }
Ejemplo n.º 12
0
 // Use this for initialization
 void Start()
 {
     globalMusic = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>();
 }