コード例 #1
0
 private void tweenLocalPlayerIndicator(GameObject go)
 {
     if (!go.IsDestroyed())
     {
         InvitationIndicatorController componentInChildren = go.GetComponentInChildren <InvitationIndicatorController>();
         if (componentInChildren != null)
         {
             componentInChildren.TweenToMainNav();
         }
     }
 }
コード例 #2
0
        private IEnumerator showIndicator()
        {
            AssetRequest <GameObject> assetRequest = Content.LoadAsync(IndicatorContentKey);

            yield return(assetRequest);

            indicatorObject = UnityEngine.Object.Instantiate(assetRequest.Asset);
            invitationIndicatorController = indicatorObject.GetComponent <InvitationIndicatorController>();
            invitationIndicatorController.TotalQuantity       = totalItemQuantity;
            invitationIndicatorController.AvailableQuantity   = AvailableItemQuantity;
            invitationIndicatorController.ItemImageContentKey = IndicatorItemImageContentKey;
            while (GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root) == null)
            {
                yield return(null);
            }
            Service.Get <EventDispatcher>().DispatchEvent(new PlayerIndicatorEvents.ShowPlayerIndicator(indicatorObject, invitingPlayerId));
        }