Ejemplo n.º 1
0
 private void Start()
 {
     pCtrl = FindObjectOfType <SideScrollController>();
     if (target1 == null)
     {
         target1 = FindObjectOfType <GunSight>().transform;
     }
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        pCtrl         = FindObjectOfType <SideScrollController>();
        rightShoulder = pCtrl.rightShoulder;

        rightShoulderPoint      = new GameObject();
        rightShoulderPoint.name = transform.root.name + "Right Shoulder IK Helper";
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     pCtrl       = FindObjectOfType <SideScrollController>();
     grappleCtrl = FindObjectOfType <GrappleController>();
     paused      = gm.frozen;
     cursorMode  = CursorMode.Auto;
     Cursor.SetCursor(reticle, new Vector2(reticle.width / 2f, reticle.height / 2f), CursorMode.Auto);
 }
    void Start()
    {
        Screen.lockCursor = false;
        Screen.showCursor = false;

        _wheels = GameObject.FindGameObjectsWithTag("Wheel");
        startTime = Time.time;
        SideScrollController.CONTROLLER = this;
    }
Ejemplo n.º 5
0
    void Start()
    {
        Screen.lockCursor = false;
        Screen.showCursor = false;

        _wheels   = GameObject.FindGameObjectsWithTag("Wheel");
        startTime = Time.time;
        SideScrollController.CONTROLLER = this;
    }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     hitSounds  = new AudioClip[] { hitSound1, hitSound2, hitSound3 };
     ropeSounds = new AudioClip[] { ropeSound1 };
     isAnchored = false;
     hookRb     = gameObject.GetComponent <Rigidbody>();
     grapple    = FindObjectOfType <GrappleController>();
     player     = FindObjectOfType <SideScrollController>();
 }
Ejemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     healthVal    = 100;
     healthChunks = 10;
     baseDmg      = 1;
     baseHeal     = 10;
     maxHealth    = healthVal;
     pCtrl        = FindObjectOfType <SideScrollController>();
     inputCtrl    = FindObjectOfType <FWSInput>();
 }
Ejemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     pCtrl       = FindObjectOfType <SideScrollController>();
     grappleCtrl = FindObjectOfType <GrappleController>();
     ps          = FindObjectOfType <ParameterScreen>();
     isPaused    = ps.isPaused;
     paused      = false;
     cursorMode  = CursorMode.Auto;
     Cursor.SetCursor(reticle, new Vector2(reticle.width / 2f, reticle.height / 2f), CursorMode.Auto);
 }
    //initializes values
    void Start()
    {
        pCtrl = FindObjectOfType <SideScrollController>();
        gm    = FindObjectOfType <GM>();

        //(good for staging starting shots)
        if (startZoomed)
        {
            transform.position = target.position + positionOffset * (zTarget * distance);
        }
        initOrthosize = Camera.main.orthographicSize;
        postProfile   = Camera.main.GetComponent <PostProcessingBehaviour>().profile;
    }
Ejemplo n.º 10
0
    // Use this for initialization
    void Start()
    {
        gm              = FindObjectOfType <GM>();
        recoil          = FindObjectOfType <WeponRecoil>();
        line            = gameObject.GetComponent <LineRenderer>();
        pInput          = FindObjectOfType <FWSInput>();
        joint           = gameObject.GetComponent <ConfigurableJoint>();
        pCtrl           = FindObjectOfType <SideScrollController>();
        staticHook      = Instantiate(HookStaticModel, barrel.transform);
        ropeLengthLimit = joint.linearLimit;

        Retract();
    }
Ejemplo n.º 11
0
    public float animBobbingMagnitude = 0.5f;  // Size of sine movement

    // Use this for initialization
    void Start()
    {
        moveToInitPosition = true;
        ShoulderPos        = transform.parent;
        pCtrl = FindObjectOfType <SideScrollController>();
    }
Ejemplo n.º 12
0
    // Use this for initialization
    void Start()
    {
        phase = Phases.EXPLORE;

        frozen = false;

        //init GO's
        currLevel = SceneManager.GetActiveScene();

        //for restart array
        interactables    = GameObject.FindGameObjectsWithTag("Interactable");
        hazards          = GameObject.FindGameObjectsWithTag("Hazard");
        normCollectibles = GameObject.FindGameObjectsWithTag("normieCollectible");
        healCollectibles = GameObject.FindGameObjectsWithTag("healCollectible");
        golCollectables  = GameObject.FindGameObjectsWithTag("scoreCollectible");

        GenerateObjectArrays(interactables, i_positions, i_rotations);
        GenerateObjectArrays(hazards, h_positions, h_rotations);
        GenerateObjectArrays(normCollectibles, nc_positions, nc_rotations);
        GenerateObjectArrays(healCollectibles, hc_positions, hc_rotations);
        GenerateObjectArrays(golCollectables, gc_positions, gc_rotations);

        resetLevel  = false;
        gameOver    = false;
        touchHazard = false;

        relic.SetActive(true);

        hd        = FindObjectOfType <HealthDepletion>();
        inputCtrl = FindObjectOfType <FWSInput>();
        pCtrl     = FindObjectOfType <SideScrollController>();
        healthVal = hd.healthVal;

        startTime = 6000;

        mode = SoundManager.mode;

        //mode = Modes.ENDLESS;

        if (mode == Modes.CLASSIC || mode == Modes.ENDLESS || mode == Modes.SOULLESS)
        {
            gCtrl.shots = 0;
        }
        else if (mode == GM.Modes.LIMSWINGS)
        {
            gCtrl.shots = 15;
        }
        if (mode == Modes.ENDLESS)
        {
            clock.rectTransform.sizeDelta      *= 3;
            clock.gameObject.transform.position = new Vector3(clock.transform.position.x, clock.transform.position.y + 3, clock.transform.position.z);
        }

        if (mode == Modes.SOULLESS)
        {
            timer = 0;
        }

        levelName = currLevel.name;
        if (levelName.Equals("Tutorial-pass2"))
        {
            level = Levels.TUTORIAL;
        }
        else if (levelName.Equals("Level_1-pass3"))
        {
            level = Levels.LEVEL1;
        }
        else if (levelName.Equals("Level_2-new"))
        {
            level = Levels.LEVEL2;
        }
        else if (levelName.Equals("Level_3_pass2"))
        {
            level = Levels.LEVEL3;
        }
    }
Ejemplo n.º 13
0
 void Start()
 {
     anim  = GetComponent <Animator>();
     pCtrl = GetComponent <SideScrollController>();
 }
Ejemplo n.º 14
0
 void Start()
 {
     _selectables = transform.parent.GetComponentsInChildren <Selectable>();
     _car         = GameObject.FindGameObjectWithTag("Player").GetComponent <SideScrollController>();
 }
Ejemplo n.º 15
0
 void Start()
 {
     _selectables = transform.parent.GetComponentsInChildren<Selectable>();
     _car = GameObject.FindGameObjectWithTag("Player").GetComponent<SideScrollController>();
 }
Ejemplo n.º 16
0
 // Use this for initialization
 void Start()
 {
     pCtrl = FindObjectOfType <SideScrollController>();
 }
Ejemplo n.º 17
0
 private void Start()
 {
     gm    = FindObjectOfType <GM>();
     hd    = FindObjectOfType <HealthDepletion>();
     pCtrl = FindObjectOfType <SideScrollController>();
 }