public void SetWidgetData(CellPhoneActivityDefinition widgetData)
 {
     this.widgetData = widgetData;
     isMemberLocked  = (widgetData.IsMemberOnly && !getIsLocalPlayerMember());
     showMemberStatus();
     setWidgetData(widgetData);
 }
    private IEnumerator loadWidget(CellPhoneActivityDefinition widgetData, Dictionary <CellPhoneActivityDefinition, GameObject> widgetDataToPrefab)
    {
        AssetRequest <GameObject> request = Content.LoadAsync(widgetData.WidgetPrefabKey);

        yield return(request);

        widgetDataToPrefab.Add(widgetData, request.Asset);
    }
Example #3
0
    protected override void setWidgetData(CellPhoneActivityDefinition widgetData)
    {
        CellPhoneLocationActivityDefinition x = widgetData as CellPhoneLocationActivityDefinition;

        if (x != null)
        {
            this.widgetData = x;
        }
    }
    public void SetWidgetData(CellPhoneActivityDefinition widgetData)
    {
        CellPhoneQuestActivityDefinition x = widgetData as CellPhoneQuestActivityDefinition;

        if (x != null)
        {
            this.widgetData = x;
            skinForQuest(this.widgetData.Quest);
        }
    }
Example #5
0
    protected override void setWidgetData(CellPhoneActivityDefinition widgetData)
    {
        CellPhoneSaleActivityDefinition x = widgetData as CellPhoneSaleActivityDefinition;

        if (x != null)
        {
            saleData = x;
            setEndTime(saleData);
            setSaleDiscount(saleData);
            CoroutineRunner.Start(updateTimer(), this, "updateTimer");
        }
    }
Example #6
0
    private void goToLocationInZone(Vector3 location, string sceneName, CellPhoneActivityDefinition definition, Reward reward)
    {
        PlayerSpawnPositionManager component = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject.GetComponent <PlayerSpawnPositionManager>();

        if (component != null)
        {
            SpawnedAction spawnedAction = new SpawnedAction();
            spawnedAction.Action = SpawnedAction.SPAWNED_ACTION.None;
            component.SpawnPlayer(new SpawnPlayerParams.SpawnPlayerParamsBuilder(location).SceneName(sceneName).SpawnedAction(spawnedAction).PendingReward(reward)
                                  .Build());
        }
        Service.Get <ICPSwrveService>().Action("activity_tracker", "quick_go", definition.GetType().ToString(), definition.name);
    }
    public void SetWidgetData(CellPhoneActivityDefinition widgetData)
    {
        CellPhoneProgressionActivityDefinition x = widgetData as CellPhoneProgressionActivityDefinition;

        if (x != null)
        {
            this.widgetData = x;
            showLevelText();
            showTipText(this.widgetData.TipToken);
            loadIconPrefab();
            showMascotLevelProgress();
        }
    }
Example #8
0
 public void SetWidgetData(CellPhoneActivityDefinition widgetData)
 {
 }
 protected abstract void setWidgetData(CellPhoneActivityDefinition setWidgetData);
 public ActivityNotificationData(int coinReward, CellPhoneActivityDefinition definition)
 {
     CoinReward = coinReward;
     Definition = definition;
 }