当前位置: 首页>>代码示例>>C#>>正文


C# EZTransition类代码示例

本文整理汇总了C#中EZTransition的典型用法代码示例。如果您正苦于以下问题:C# EZTransition类的具体用法?C# EZTransition怎么用?C# EZTransition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EZTransition类属于命名空间,在下文中一共展示了EZTransition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitChallenge

	void InitChallenge(EZTransition transition)
	{
		Debug.Log("initChallenge");
		Flow.header.transform.FindChild("OptionsPanel").gameObject.SetActive(true);
		
		newPanel.gameObject.SetActive(true);
		oldPanel.gameObject.SetActive(false);
		
		if(newPanel.transform.FindChild("NewScroll").GetComponent<UIScrollList>().Count != 0) noFriendsLabel.Text = "";
		else noFriendsLabel.Text = "No New Challenges";
		
		// Manda carregar o Video, se o sistema de ADS estiver rodando e o cara tiver permissao de assistir aquele video naquela hora
        if (Advertisement.IsRunning()) 
		{
			Debug.Log("ads running");
			if(Save.HasKey(PlayerPrefsKeys.VIDEO))
			{
				Debug.Log("has video key");
				if((DateTime.Parse(Save.GetString(PlayerPrefsKeys.VIDEO)) - DateTime.UtcNow) <= TimeSpan.FromDays(1))
				{
					Debug.Log("already watched for the time being");
					return;
				}
			}
			
			Debug.Log("FETCH VIDEO!");
			Advertisement.Video.Fetch();
		}
		
		Connect();
		
		//Debug.Log("chamou InitChallenge");
	}
开发者ID:uptopgames,项目名称:Minesweeper,代码行数:33,代码来源:Challenge.cs

示例2: InitShop

	void InitShop(EZTransition transition)
	{
		Flow.header.transform.FindChild("OptionsPanel").gameObject.SetActive(true);
		
		RefreshItemsScroll();
		RefreshCoinsScroll();
		
		// Manda carregar o Video, se o sistema de ADS estiver rodando e o cara tiver permissao de assistir aquele video naquela hora
        if (Advertisement.IsRunning()) 
		{
			Debug.Log("ads running");
			if(Save.HasKey(PlayerPrefsKeys.VIDEO))
			{
				Debug.Log("has video key");
				if((DateTime.Parse(Save.GetString(PlayerPrefsKeys.VIDEO)) - DateTime.UtcNow) <= TimeSpan.FromDays(1))
				{
					Debug.Log("already watched for the time being");
					return;
				}
			}
			
			Debug.Log("FETCH VIDEO!");
			Advertisement.Video.Fetch();
			
		}
		
		Debug.Log("chamou InitShop");
	}
开发者ID:uptopgames,项目名称:Minesweeper,代码行数:28,代码来源:Shop.cs

示例3: InitLevelSelection

	void InitLevelSelection(EZTransition transition)
	{
		Flow.header.transform.FindChild("OptionsPanel").gameObject.SetActive(true);
		
		if (!Save.HasKey ("actualWorld")) 
		{
			actualWorld = 1;
		}
		else
		{
			actualWorld = Save.GetInt ("actualWorld");
		}
		
		scrollLevels.ScrollToItem(actualWorld-1, 0.5f);
		
		//scrollLevels.SetSelectedItem(actualWorld);
		scrollLevels.AddItemSnappedDelegate(SetWorld);
		
		//Debug.Log ("actualWorld: " + actualWorld);
		
		// salva as estrelas ganhas no flow
		
		foreach(KeyValuePair<int, World> w in Flow.worldDict)
		{
			foreach (KeyValuePair<int, Level> l in w.Value.levelDict)
			{
				if (Save.HasKey (PlayerPrefsKeys.LEVELSTARS+l.Key))
				{
					l.Value.stars = Save.GetInt(PlayerPrefsKeys.LEVELSTARS+(l.Key).ToString()); // world1_level1_stars
					Debug.Log("l.Value.stars: " + l.Value.stars + ", level: " + l.Value.id + ", world: " + w.Value.id);
					//l.Value.points = l.Key;
				}
			}
		}
		
		for(int i = 0; i < 5; i++)
		{
			for(int j = 0; j < 9; j++)
			{
				int stars = i*9+7+j;
				
				if (Save.HasKey (PlayerPrefsKeys.LEVELSTARS+stars))
				{
					transform.FindChild("ScrollLevels").FindChild("Mover").FindChild("World " + (i+1).ToString() + " List Item").
					FindChild("Level " + (j+1).ToString() + " Panel").GetComponent<Level>().stars = Save.GetInt(PlayerPrefsKeys.LEVELSTARS+stars);
				}
				else
				{
					transform.FindChild("ScrollLevels").FindChild("Mover").FindChild("World " + (i+1).ToString() + " List Item").
					FindChild("Level " + (j+1).ToString() + " Panel").GetComponent<Level>().stars = 0;
				}
				
				transform.FindChild("ScrollLevels").FindChild("Mover").FindChild("World " + (i+1).ToString() + " List Item").
					FindChild("Level " + (j+1).ToString() + " Panel").GetComponent<Level>().SetStars();
			}
		}
	}
开发者ID:uptopgames,项目名称:Minesweeper,代码行数:57,代码来源:LevelSelection.cs

示例4: Connect

	void Connect(EZTransition transition)
	{
		Flow.header.transform.FindChild("OptionsPanel").gameObject.SetActive(true);
		
		notInThisPanel = false;
		Debug.Log ("gameListCount: " + Flow.gameList.Count);
		Debug.Log ("scrollCount: " + scroll.Count);
		
		if (Flow.gameList.Count > 0)
		{
			noGamesYet.Text = "";
				
			// Fix Me Up Top Coloquei um porque adicionei a forca um container offline
			if (scroll.Count == 0)
			{
				Debug.Log ("adicioneiVelhosContainersNaLista");
				
				sortList();
								
				for (int i = 0; i < Flow.gameList.Count; i++)
				{	
					if (Flow.gameList[i].id != -999) 
					{
						Debug.Log("coloquei " + Flow.gameList[i].friend.name);
						// seta past index na lista para atualizacoes que foram feitas em battle status...
						Flow.gameList[i].pastIndex = i;
						//scroll.InsertItem(Flow.gameList[i].GetComponent<UIListItemContainer>(), i);
						Debug.Log("picture flow: "+Flow.gameList[i].friend.rawText.ToString());
						CreateGameContainer (Flow.gameList[i], i);
					}
					else if(Flow.gameList[i].whoseMove == "your")
					{
						Debug.Log("coloquei label your " + i);
						AddTurnLabel("your", i);
					}
					else if(Flow.gameList[i].whoseMove == "their")
					{
						Debug.Log("coloquei label their " + i);
						AddTurnLabel("their", i);
					}
				}
			}
		}
		
		Debug.Log("tem token: "+Save.HasKey(PlayerPrefsKeys.TOKEN));
		if(Save.HasKey(PlayerPrefsKeys.TOKEN)) Debug.Log("token: "+Save.GetString(PlayerPrefsKeys.TOKEN));
		
		WWWForm form = new WWWForm();
		form.AddField("lastUpdate",TimeZoneInfo.ConvertTimeToUtc(Flow.lastUpdate).ToString());
		new GameJsonAuthConnection(Flow.URL_BASE + "mines/getgames.php", OnReceiveGames).connect(form);
	}
开发者ID:uptopgames,项目名称:Minesweeper,代码行数:51,代码来源:Multiplayer.cs

示例5: OptionsLoad

	void OptionsLoad(EZTransition transition)
	{
		soundVolumeSlider.Value = Save.GetFloat(PlayerPrefsKeys.VOLUME.ToString());
		if(Save.GetString(PlayerPrefsKeys.PUSHNOTIFICATIONS.ToString()) == "On") 
		{
			pushOn.gameObject.SetActive(true);
			pushOff.gameObject.SetActive(false);
		}
		else 
		{
			pushOff.gameObject.SetActive(true);
			pushOn.gameObject.SetActive(false);
		}
	}
开发者ID:uptopgames,项目名称:baseproject,代码行数:14,代码来源:Options.cs

示例6: InitRankings

	void InitRankings(EZTransition transition)
	{
		Debug.Log("transition rankings");
		stageName.Text = Flow.currentRank.name;
		hostName.Text = "Hosted by " + Flow.currentRank.creatorName;
		if(Flow.currentRank.hostID == Save.GetString(PlayerPrefsKeys.ID))
		{
			playAgainButton.SetActive(false);
			challengeButton.SetActive(true);
		}
		else
		{
			playAgainButton.SetActive(true);
			challengeButton.SetActive(false);
		}
		transform.FindChild("World"+(Flow.currentRank.world+1).ToString()).gameObject.SetActive(true);
		Connect();
	}
开发者ID:uptopgames,项目名称:Minesweeper,代码行数:18,代码来源:RankingsPanel.cs

示例7: InitReplay

	void InitReplay (EZTransition transition) 
	{
		Flow.header.transform.FindChild("OptionsPanel").gameObject.SetActive(false);
		if(Flow.currentGame.friend.rawText != null) enemyPicture.material.mainTexture = Flow.currentGame.friend.rawText;
		else
		{
			GameRawAuthConnection conn = new GameRawAuthConnection(Flow.URL_BASE + "login/picture.php", HandleGetFriendPicture);
			WWWForm form = new WWWForm();
			form.AddField("user_id", Flow.currentGame.friend.id);
			
			conn.connect(form);
		}
		
		enemyName.Text = Flow.currentGame.friend.name;
		
		int enemyPoints = 0;
		int myPoints = 0;
		for(int i = 0 ; i < Flow.ROUNDS_PER_TURN ; i++)
		{
			//myPoints += Flow.currentGame.pastMyRoundList[i].playerRoundWin;
			//enemyPoints += Flow.currentGame.pastTheirRoundList[i].playerRoundWin;
		}
		
		if(enemyPoints > myPoints) 
		{
			Flow.enemyWin = true;
			Flow.playerWin = false;
		}
		else if(myPoints > enemyPoints) 
		{
			Flow.playerWin = true;
			Flow.enemyWin = false;
		}
		else
		{
			Flow.playerWin = false;
			Flow.enemyWin = false;
		}
	}
开发者ID:uptopgames,项目名称:Minesweeper,代码行数:39,代码来源:Replay.cs

示例8: TransitionCompleted

	// Gets called when our transition is complete
	public void TransitionCompleted(EZTransition transition)
	{
		prevTransition = null;

		// Deactivate all child objects?
		if (deactivateAllOnDismiss)
		{
			// If this was a dismissal:
			if (transition == Transitions.list[2] ||
			   transition == Transitions.list[3])
#if UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_4_7 || UNITY_4_8 || UNITY_4_9
				gameObject.SetActive(false);
#else
				gameObject.SetActiveRecursively(false);
#endif
		}

		if (tempTransCompleteDel != null)
			tempTransCompleteDel(this, transition);
		tempTransCompleteDel = null;

		if (changeDelegate != null)
			changeDelegate(this);

		if (blockInput[prevTransIndex] && UIManager.Exists())
			UIManager.instance.UnlockInput();
	}
开发者ID:juliancruz87,项目名称:transpp,代码行数:28,代码来源:UIPanelBase.cs

示例9: DismissFirstPastPanel

	void DismissFirstPastPanel(EZTransition transition)
	{
		firstPastPanel.transitions.list[2].AddTransitionEndDelegate(BringSecondPastPanel);
		firstPastPanel.Dismiss();
	}
开发者ID:uptopgames,项目名称:baseproject,代码行数:5,代码来源:BattleStatus.cs

示例10: BringSecondPastPanel

	void BringSecondPastPanel(EZTransition transition)
	{
		lastPastPanel.transitions.list[0].AddTransitionEndDelegate(DismissSecondPastPanel);
		lastPastPanel.BringIn();
	}
开发者ID:uptopgames,项目名称:baseproject,代码行数:5,代码来源:BattleStatus.cs

示例11: InitShop

	void InitShop(EZTransition transition)
	{
		RefreshItemsScroll();
		RefreshCoinsScroll();
	}
开发者ID:uptopgames,项目名称:baseproject,代码行数:5,代码来源:Shop.cs

示例12: DismissSecondPastPanel

	void DismissSecondPastPanel(EZTransition transition)
	{
		lastPastPanel.transitions.list[2].AddTransitionEndDelegate(StartGame);
		lastPastPanel.Dismiss();
	}
开发者ID:uptopgames,项目名称:baseproject,代码行数:5,代码来源:BattleStatus.cs

示例13: DecrementTransitioningPanels

	protected void DecrementTransitioningPanels(UIPanelBase p, EZTransition t)
	{
		--transitioningPanelCount;
	}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:4,代码来源:UIPanelManager.cs

示例14: Start

    void Start()
    {
        bringInFoward = interPanel.GetTransition(UIPanelManager.SHOW_MODE.BringInForward);
        dismissForwad = interPanel.GetTransition(UIPanelManager.SHOW_MODE.DismissForward);

        bringInFoward.AddTransitionEndDelegate(AppearEnd);
        dismissForwad.AddTransitionEndDelegate(HideEnd);
    }
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:8,代码来源:QuestProgressMsgPanel.cs

示例15: DisableMe

	// Sets the control to its disabled appearance:
	protected void DisableMe()
	{
		// The disabled state is the last in the states list:
		SetState(states.Length - 1);

		this.UseStateLabel(states.Length - 1);

		// Set the layer states:
		for (int i = 0; i < layers.Length; ++i)
		{
			if (stateIndices[i, states.Length - 1] != -1)
				layers[i].SetState(stateIndices[i, states.Length - 1]);
		}

		// End any current transition:
		if (prevTransition != null)
			prevTransition.StopSafe();

		transitions[states.Length - 1].list[0].Start();
		prevTransition = transitions[states.Length - 1].list[0];
	}
开发者ID:juliancruz87,项目名称:transpp,代码行数:22,代码来源:UIStateToggleBtn.cs


注:本文中的EZTransition类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。