Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        pressDopeEqp1          = -1;
        pressDopeEqp2          = -1;
        pressWeaponEqp         = -1;
        gridValue              = -1;
        gridLineValue          = 5;
        indexGrid              = grids.Length - 1;
        indexGridY             = (grids.Length / 5) - 1;
        style                  = new GUIStyle();
        style.normal.textColor = Color.white;

        styleLife                  = new GUIStyle();
        styleLife.font             = (Font)Resources.Load("Fonts/BIONIC");
        styleLife.normal.textColor = Color.green;
        styleLife.alignment        = TextAnchor.LowerRight;
        windowPosition             = new Vector2(0, 0);

        addingNewItem      = GetComponent <inventoryAddItem>();
        thePlayerInventory = GetComponent <playerInventory>();
        thePlayerControl   = GetComponent <playerController>();
    }
    // Use this for initialization
    void Start()
    {
        spawned = false;

        gridIndexValue         = -1;
        gridLineValue          = 5;
        maxIndexGrids          = grids.Length - 1;
        maxColumnGrid          = (grids.Length / 5) - 1;
        style                  = new GUIStyle();
        style.normal.textColor = Color.white;

        lanternGrid = new GUIContent();

        styleLife                  = new GUIStyle();
        styleLife.font             = (Font)Resources.Load("Fonts/BIONIC");
        styleLife.normal.textColor = Color.green;
        styleLife.alignment        = TextAnchor.LowerRight;
        windowPosition             = new Vector2(0, 0);

        addingNewItem = GetComponent <inventoryAddItem>();
        items         = GetComponent <itemsScript>();
        uChanControl  = GetComponent <uChanController>();
    }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     addingNewItem = FindObjectOfType <inventoryAddItem>();
 }
 // Use this for initialization
 void Start()
 {
     selectOpt = 1;
     stButton.Select();
     addingNewItem = GetComponent <inventoryAddItem>();
 }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     thePlayerInventory = GetComponent <playerInventory>();
     thePlqyerControl   = GetComponent <playerController>();
     addingNewItem      = GetComponent <inventoryAddItem>();
 }
Beispiel #6
0
 // Use this for initialization
 void Start()
 {
     items         = GetComponent <itemsScript>();
     uChanControl  = GetComponent <uChanController>();
     addingNewItem = GetComponent <inventoryAddItem>();
 }