/*--------------------------------------------------------------------------------------------*/
		public void Start() {
			if ( vState == null ) {
				return;
			}

			var menuObj = new GameObject("Menu");
			menuObj.transform.SetParent(gameObject.transform, false);
			vUiMenu = menuObj.AddComponent<UiMenu>();
			vUiMenu.Build(vState, DefaultItemVisualSettings);

			vState.SetReferences(menuObj.transform);
			Hovercursor.State.AddDelegate(vState);
		}
Exemplo n.º 2
0
        /*--------------------------------------------------------------------------------------------*/
        public void Start()
        {
            if ( vState == null ) {
                return;
            }

            var menuObj = new GameObject("Menu");
            menuObj.transform.SetParent(gameObject.transform, false);
            vUiMenu = menuObj.AddComponent<UiMenu>();
              vUiMenu.ScaleRate = ((HovercastItemVisualSettingsStandard) DefaultItemVisualSettings).UiMenuScale;
              //Debug.Log ("Test " +  vUiMenu.ScaleArcSize);
            vUiMenu.Build(vState, DefaultItemVisualSettings);

            vState.SetReferences(menuObj.transform);
            Hovercursor.State.AddDelegate(vState);
        }