//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ internal void Build(MenuState pMenuState, ICustomSegment pCustomSeg, ICustomPalm pCustomPalm) { vMenuState = pMenuState; vArcState = vMenuState.Arc; 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(vArcState, pCustomPalm); var arcObj = new GameObject("Arc"); arcObj.transform.SetParent(gameObject.transform, false); vUiArc = arcObj.AddComponent<UiArc>(); vUiArc.Build(vArcState, pCustomSeg); vMenuState.OnSideChange += HandleSideChange; }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ internal void Build(MenuState pMenuState, ICustomSegment pCustomSeg, ICustomPalm pCustomPalm) { vMenuState = pMenuState; vArcState = vMenuState.Arc; 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(vArcState, pCustomPalm); var arcObj = new GameObject("Arc"); arcObj.transform.SetParent(gameObject.transform, false); vUiArc = arcObj.AddComponent <UiArc>(); vUiArc.Build(vArcState, pCustomSeg); vMenuState.OnSideChange += HandleSideChange; }