public void Initialize() { gui = OnGuiManager.instance; splatterPosition = new Rect(0, 0, gui.GetWidth(), gui.GetHeight()); bloodAlpha = 0f; fadeDir = -1f; }
public void Initialize() { game = GameManager.instance; gui = OnGuiManager.instance; guiCenterX = gui.GetCenterX(); guiCenterY = gui.GetCenterY(); guiWidth = gui.GetWidth(); helpPosition = new Rect(guiCenterX-350, 920, 650, 40); notePosition = new Rect(guiCenterX-350, guiCenterY-60, 700, 40); treasureNotePosition = new Rect(guiCenterX-350, 300, 700, 40); gunInfoPosition = new Rect(20,920,330,500); grenadeInfoPosition = new Rect(guiWidth-300,1010,300,20); //health & armor bar position and size healtBackPosition = new Rect(20,20,364,58); armorBackPosition = new Rect(26,63,352,8); dragonBackPosition = new Rect(guiCenterX-185,20,369,55); }