Пример #1
0
		////////////////////////////////////////////////////////////////////////////////////////////////
		/*--------------------------------------------------------------------------------------------*/
		internal void Build(HovercastState pState, IItemVisualSettingsProvider pItemVisualSettingsProv){
			vState = pState;
			vLeftRot = Quaternion.identity;
			vRightRot = Quaternion.AngleAxis(180, Vector3.up);

			var palmObj = new GameObject("Palm");
			palmObj.transform.SetParent(gameObject.transform, false);
			vUiPalm = palmObj.AddComponent<UiPalm>();
			vUiPalm.Build(vState.FullMenu, pItemVisualSettingsProv);

			var arcObj = new GameObject("Arc");
			arcObj.transform.SetParent(gameObject.transform, false);
			vUiArc = arcObj.AddComponent<UiArc>();
			vUiArc.Build(vState.FullMenu, pItemVisualSettingsProv);

			vState.OnSideChange += HandleSideChange;
		}
Пример #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        internal void Build(HovercastState pState, IItemVisualSettingsProvider pItemVisualSettingsProv)
        {
            vState    = pState;
            vLeftRot  = Quaternion.AngleAxis(180, Vector3.up);
            vRightRot = Quaternion.identity;

            var palmObj = new GameObject("Palm");

            palmObj.transform.SetParent(gameObject.transform, false);
            vUiPalm = palmObj.AddComponent <UiPalm>();
            vUiPalm.Build(vState.FullMenu, pItemVisualSettingsProv);

            var arcObj = new GameObject("Arc");

            arcObj.transform.SetParent(gameObject.transform, false);
            vUiArc = arcObj.AddComponent <UiArc>();
            vUiArc.Build(vState.FullMenu, pItemVisualSettingsProv);

            vState.OnSideChange += HandleSideChange;
        }