本文整理汇总了C#中UISprite.Find方法的典型用法代码示例。如果您正苦于以下问题:C# UISprite.Find方法的具体用法?C# UISprite.Find怎么用?C# UISprite.Find使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UISprite
的用法示例。
在下文中一共展示了UISprite.Find方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public static void Init(GameAreaInfoPanel g)
{
m_AreaIndex = g.GetType().GetField("m_AreaIndex", BindingFlags.NonPublic | BindingFlags.Instance);
m_FullscreenContainer = UIView.Find("FullScreenContainer");
m_Title = g.Find<UILabel>("Title");
m_BuildableArea = g.Find<UILabel>("BuildableArea");
m_Price = g.Find<UILabel>("Price");
m_PurchasePanel = g.Find<UIPanel>("PurchasePanel");
m_OilResources = g.Find<UIProgressBar>("ResourceBarOil");
m_OreResources = g.Find<UIProgressBar>("ResourceBarOre");
m_ForestryResources = g.Find<UIProgressBar>("ResourceBarForestry");
m_FertilityResources = g.Find<UIProgressBar>("ResourceBarFarming");
m_OilNoResources = g.Find("ResourceOil").Find<UISprite>("NoNoNo");
m_OreNoResources = g.Find("ResourceOre").Find<UISprite>("NoNoNo");
m_ForestryNoResources = g.Find("ResourceForestry").Find<UISprite>("NoNoNo");
m_FertilityNoResources = g.Find("ResourceFarming").Find<UISprite>("NoNoNo");
m_Water = g.Find<UISprite>("Water");
m_NoWater =m_Water.Find<UISprite>("NoNoNo");
m_Highway = g.Find<UISprite>("Highway");
m_NoHighway =m_Highway.Find<UISprite>("NoNoNo");
m_InHighway =m_Highway.Find<UISprite>("Incoming");
m_OutHighway =m_Highway.Find<UISprite>("Outgoing");
m_Train = g.Find<UISprite>("Train");
m_NoTrain =m_Train.Find<UISprite>("NoNoNo");
m_InTrain =m_Train.Find<UISprite>("Incoming");
m_OutTrain =m_Train.Find<UISprite>("Outgoing");
m_Ship = g.Find<UISprite>("Ship");
m_NoShip =m_Ship.Find<UISprite>("NoNoNo");
m_InShip =m_Ship.Find<UISprite>("Incoming");
m_OutShip =m_Ship.Find<UISprite>("Outgoing");
m_Plane = g.Find<UISprite>("Plane");
m_NoPlane =m_Plane.Find<UISprite>("NoNoNo");
m_InPlane =m_Plane.Find<UISprite>("Incoming");
m_OutPlane = m_Plane.Find<UISprite>("Outgoing");
}