Пример #1
0
 void Start()
 {
     db = this.GetComponent<DestructibleBehaviour> ();
     peh = primaryEventObj.GetComponent<PrimaryEventHandler> ();
     oh = objcHandlerObj.GetComponent<ObjectiveHandler> ();
 }
 void Start()
 {
     peh = primaryEventHandlerObj.GetComponent<PrimaryEventHandler> ();
     dc = destroyController.GetComponent<DestroyControls> ();
     statsTextPanel = statsTextObject.transform.parent.gameObject;
     statsTextImage = statsTextPanel.transform.GetChild (0).gameObject;
     objectsOfInterest = new string[2]{"Destructible", "NPC"};
     prevMouseDown = true;
 }
 void Start()
 {
     peh = primaryEventHandlerObj.GetComponent<PrimaryEventHandler> ();
     vui = volumeUiObject.GetComponent<VolumeUI> ();
     pv = player.GetComponent<PlayerVolume> ();
     psfx = player.GetComponent<PlayerSoundFX> ();
     overLocked = false;
     onUIExit = false;
 }
 void Start()
 {
     peh = pehObject.GetComponent<PrimaryEventHandler> ();
     sbb = sideButtonController.GetComponent<SidebuttonBehaviour> ();
     dc = dcObject.GetComponent<DestroyControls> ();
 }
Пример #5
0
    void Start()
    {
        standard = GameObject.Find ("StandardObject");
        sob = standard.GetComponent<StandardObject> ();

        relativeScaling = sob.getStandardScaling();
        psfx = gameObject.GetComponent<PlayerSoundFX> ();
        pg = particleGenObj.GetComponent<ParticleGenerator> ();
        peh = primEventObj.GetComponent<PrimaryEventHandler> ();
        GameObject pgdg = GameObject.Find (preservedDataName);
        if (pgdg == null) {
            pgd = null;
        } else {
            pgd = pgdg.GetComponent<PreservedGameData> ();
        }
        if (pgd != null && pgd.getSavedVolume () >= 0) {
            currentVolume = pgd.getSavedVolume ();
        } else {
            currentVolume = VolumeCalculator.newGetVolume(this.gameObject, this.type);
        }
        updateScale(false);
    }