/*--------------------------------------------------------------------------------------------*/ 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); }
/*--------------------------------------------------------------------------------------------*/ 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); }