Пример #1
0
    void Awake()
    {
        instance = this;

        uiHUD           = gameObject.GetComponent <UIHUD>();
        uiOverlay       = gameObject.GetComponent <UIOverlay>();
        uiAbility       = gameObject.GetComponent <UIAbilityButtons>();
        uiPerkMenu      = gameObject.GetComponent <UIPerkMenu>();
        uiGameOver      = gameObject.GetComponent <UIGameOver>();
        uiUnitPlacement = gameObject.GetComponent <UIUnitPlacement>();

        //uiHUD.enabled=false;
        uiOverlay.enabled = false;
        //uiAbility.enabled=false;
        uiGameOver.enabled      = false;
        uiUnitPlacement.enabled = false;

        colorH = new Color(1f, .6f, 0f, 1f);
        colorN = new Color(1f, .85f, .75f, 1f);
        texBar = Resources.Load("Textures/Bar", typeof(Texture)) as Texture;
    }
Пример #2
0
	void Awake(){
		
		instance=this;
		
		uiHUD=gameObject.GetComponent<UIHUD>();
		uiOverlay=gameObject.GetComponent<UIOverlay>();
		uiAbility=gameObject.GetComponent<UIAbilityButtons>();
		uiPerkMenu=gameObject.GetComponent<UIPerkMenu>();
		uiGameOver=gameObject.GetComponent<UIGameOver>();
		uiUnitPlacement=gameObject.GetComponent<UIUnitPlacement>();
		
		//uiHUD.enabled=false;
		uiOverlay.enabled=false;
		//uiAbility.enabled=false;
		uiGameOver.enabled=false;
		uiUnitPlacement.enabled=false;
		
		colorH=new Color(1f, .6f, 0f, 1f);
		colorN=new Color(1f, .85f, .75f, 1f);
		texBar=Resources.Load("Textures/Bar", typeof(Texture)) as Texture;
		
		
	}