Esempio n. 1
0
 public void Initialize()
 {
     gui = OnGuiManager.instance;
     game = GameManager.instance;
     centerX = gui.GetCenterX();
     centerY = gui.GetCenterY();
 }
Esempio n. 2
0
 public void Initialize()
 {
     gui = OnGuiManager.instance;
     splatterPosition = new Rect(0, 0, gui.GetWidth(), gui.GetHeight());
     bloodAlpha = 0f;
     fadeDir = -1f;
 }
Esempio n. 3
0
 public void Initialize()
 {
     game = GameManager.instance;
     gui = OnGuiManager.instance;
     scoreManager = HighScoreManager.instance;
     centerX = gui.GetCenterX();
     centerY = gui.GetCenterY();
     playerName = "";
 }
Esempio n. 4
0
    public void Initialize()
    {
        gui = OnGuiManager.instance;
        game = GameManager.instance;

        // get screen center coordinates
        centerX = gui.GetCenterX();
        centerY = gui.GetCenterY();
    }
Esempio n. 5
0
    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);
    }
Esempio n. 6
0
 void Start()
 {
     game = GameManager.instance;
     guiManager = OnGuiManager.instance;
     motor = GetComponent<CharacterMotor>();
     sounds = PlayerSounds.instance;
 }
Esempio n. 7
0
 public void Awake()
 {
     OnGuiManager.instance = this;
     game = GetComponent<GameManager>();
 }