Example #1
0
    void Start()
    {
        //initialize the string with our credits!
        creditsList = new string[] { "Designer/Programmer\n Laszlo Kecskes", "Art/Animation Director\n Ludmila Sosa",
                                     "Senior Programmer\n Anthony Michelizzi", "Composer\n Cale Reneau", "Sounds", "vyzkov\n Duck 'Quack'",
                                     "thanvannispen\n 'Woman Sceaming'", "noctaro\n 'Small Dog Bark 01'", "CGEffex\n 'Ship artillery blast classic'",
                                     "InspectorJ\n Wind Chimes", "Benboncan\n Cow 'Moo'" };

        //find the text game object
        gOText = GameObject.Find("CreditsText").GetComponent <Text>();

        //find the image swap for the credits
        swap = GameObject.Find("FinalCredits").GetComponent <ImageChange>();

        //find the special thank you text and disable it
        finalText = GameObject.Find("FinalText");
        finalText.SetActive(false);

        //find the Camera effect
        camFilter = GameObject.Find("Main Camera").GetComponent <CameraFilterPack_TV_Old_Movie_2>();

        //set text load to false on start
        hasLoaded = false;

        orderOfCredits = 0;
    }
Example #2
0
    void Start()
    {
        jumpedOnBouncyWoman = false;
        jumpedOnCow         = false;
        jumpedOnDog         = false;
        swipeTimer          = 0f;
        swipeEnabler        = true;
        camEffect           = GameObject.Find("Main Camera").GetComponent <CameraFilterPack_TV_Old_Movie_2>();
        camEffect.enabled   = true;
        anim             = transform.GetComponentInChildren <Animator>();
        parachuteEnabled = false;
        parachuteCreated = false;

        _child = transform.Find("Player GFX");

        _rb2D = GetComponent <Rigidbody2D>();

        if (anim == null)
        {
            Debug.LogError("No animator, dude!");
        }

        player = GameObject.Find("Player");

        //for the parachute animation
        parachuteScript = GetComponent <ParachuteFollowPlayer>();

        //Scaling stuff inserted here to reset!
        //==============================//
        //Auto-enabling bean ability for now!
        beanAbility          = true;
        adjustableScale      = new Vector3(setScaleX, setScaleY, 1);
        transform.localScale = adjustableScale;
        //=============================//

        //Initialize camera power up!
        cameraPowerUpFlag = false;
        effectTime        = 5;
    }