本文整理汇总了C#中uFrame类的典型用法代码示例。如果您正苦于以下问题:C# uFrame类的具体用法?C# uFrame怎么用?C# uFrame使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
uFrame类属于命名空间,在下文中一共展示了uFrame类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: PhotonSystemOnJoinedRoomHandler
protected void PhotonSystemOnJoinedRoomHandler(uFrame.ECS.OnJoinedRoomDispatcher data, LobbyButton source) {
var handler = PhotonSystemOnJoinedRoomHandlerInstance;
handler.System = this;
handler.Event = data;
handler.Source = source;
StartCoroutine(handler.Execute());
}
开发者ID:InvertGames,项目名称:uFrame.Photon,代码行数:7,代码来源:RoomSystem.cs
示例2: LobbySystemPointerClickFilter
protected void LobbySystemPointerClickFilter(uFrame.ECS.PointerClickDispatcher data) {
var SourceLobbyButton = LobbyButtonManager[data.EntityId];
if (SourceLobbyButton == null) {
return;
}
this.LobbySystemPointerClickHandler(data, SourceLobbyButton);
}
开发者ID:InvertGames,项目名称:uFrame.Photon,代码行数:7,代码来源:LobbySystem.cs
示例3: PhotonSystemOnJoinedRoomFilter
protected void PhotonSystemOnJoinedRoomFilter(uFrame.ECS.OnJoinedRoomDispatcher data) {
var SourceLobbyButton = LobbyButtonManager[data.EntityId];
if (SourceLobbyButton == null) {
return;
}
this.PhotonSystemOnJoinedRoomHandler(data, SourceLobbyButton);
}
开发者ID:InvertGames,项目名称:uFrame.Photon,代码行数:7,代码来源:RoomSystem.cs
示例4: CubesAdded
public override void CubesAdded(uFrame.MVVM.ViewBase view)
{
float x = UnityEngine.Random.Range(0.25f, 0.75f);
float y = UnityEngine.Random.Range(0.25f, 0.75f);
Vector3 viewPort = new Vector3(x, y, 10f);
view.transform.position = Camera.main.ViewportToWorldPoint(viewPort);
}
开发者ID:masaaania,项目名称:uFramePractice,代码行数:7,代码来源:CubeSpawnView.cs
示例5: LobbySystemPointerClickHandler
protected void LobbySystemPointerClickHandler(uFrame.ECS.PointerClickDispatcher data, LobbyButton source) {
var handler = LobbySystemPointerClickHandlerInstance;
handler.System = this;
handler.Event = data;
handler.Source = source;
StartCoroutine(handler.Execute());
}
开发者ID:InvertGames,项目名称:uFrame.Photon,代码行数:7,代码来源:LobbySystem.cs
示例6: DemoPlayerSystemPointerClickHandler
protected virtual void DemoPlayerSystemPointerClickHandler(uFrame.ECS.MouseDownDispatcher data, ClickCount source) {
var handler = new DemoPlayerSystemPointerClickHandler();
handler.System = this;
handler.Event = data;
handler.Source = source;
handler.Execute();
}
开发者ID:InvertGames,项目名称:uFrame.ECS.PlayFab,代码行数:7,代码来源:DemoPlayerSystem.designer.cs
示例7: PhotonSystemGameReadyHandler
protected void PhotonSystemGameReadyHandler(uFrame.Kernel.GameReadyEvent data, Driver group) {
var handler = PhotonSystemGameReadyHandlerInstance;
handler.System = this;
handler.Event = data;
handler.Group = group;
StartCoroutine(handler.Execute());
}
开发者ID:InvertGames,项目名称:uFrame.Photon,代码行数:7,代码来源:PhotonSystem.cs
示例8: InitializeViewModel
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model)
{
base.InitializeViewModel(model);
// NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
// var vm = model as GameCoreViewModel;
// This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here.
}
开发者ID:housei,项目名称:CubeClicker,代码行数:7,代码来源:GameHUDView.cs
示例9: HandleDestroyOnCollisionHandler
protected override void HandleDestroyOnCollisionHandler(uFrame.ECS.OnTriggerEnterDispatcher data, DestroyOnCollision source)
{
var handler = new HandleDestroyOnCollisionHandler();
handler.System = this;
handler.Event = data;
handler.Source = source;
handler.Execute();
}
开发者ID:InvertGames,项目名称:uFrameECSDemo,代码行数:8,代码来源:HazardSystem.cs
示例10: InitializeViewModel
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
base.InitializeViewModel(model);
// NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
// var vm = model as LevelRootViewModel;
// This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here.
var levelrootview = ((LevelRootViewModel)model);
levelrootview.CurrentLevel = this._CurrentLevel;
}
开发者ID:marcochiu2-c,项目名称:MainMenu_uFrame1.6,代码行数:8,代码来源:Views.designer.cs
示例11: PhotonSystemGameReadyFilter
protected void PhotonSystemGameReadyFilter(uFrame.Kernel.GameReadyEvent data) {
var DriverItems = DriverManager.Components;
for (var DriverIndex = 0
; DriverIndex < DriverItems.Count; DriverIndex++
) {
this.PhotonSystemGameReadyHandler(data, DriverItems[DriverIndex]);
}
}
开发者ID:InvertGames,项目名称:uFrame.Photon,代码行数:8,代码来源:PhotonSystem.cs
示例12: GameReadyEventHandler
protected void GameReadyEventHandler(uFrame.Kernel.GameReadyEvent data, Box group)
{
var handler = GameReadyEventHandlerInstance;;
handler.System = this;
handler.Event = data;
handler.Group = group;
handler.Execute();
}
开发者ID:MikeHuntington,项目名称:ECS-Numbers,代码行数:8,代码来源:BoxSystem.cs
示例13: UISystemPointerClickDispatcherHandler
protected override void UISystemPointerClickDispatcherHandler(uFrame.ECS.PointerClickDispatcher data, PlayGameButton source)
{
var handler = new UISystemPointerClickDispatcherHandler();
handler.System = this;
handler.Event = data;
handler.Source = source;
handler.Execute();
}
开发者ID:InvertGames,项目名称:uFrameECSDemo,代码行数:8,代码来源:UISystem.cs
示例14: InitializeViewModel
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
base.InitializeViewModel(model);
// NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
// var vm = model as PlayerViewModel;
// This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here.
//Debug.Log("Max_Quantity = " + Max_Quantity);
gSHexGridManager = GameObject.Find("HexMapGrid").GetComponent<GSHexGridManager>();
}
开发者ID:marcochiu2-c,项目名称:MainMenu_uFrame1.6,代码行数:8,代码来源:SoldierView.cs
示例15: PlayerSystemOnCollisionEnterHandler
protected override void PlayerSystemOnCollisionEnterHandler(uFrame.ECS.OnTriggerEnterDispatcher data, Hazard collider, PlayerGunner source)
{
var handler = new PlayerSystemOnCollisionEnterHandler();
handler.System = this;
handler.Event = data;
handler.Collider = collider;
handler.Source = source;
handler.Execute();
}
开发者ID:InvertGames,项目名称:uFrameECSDemo,代码行数:9,代码来源:PlayerSystem.cs
示例16: GameReadyEventFilter
protected void GameReadyEventFilter(uFrame.Kernel.GameReadyEvent data)
{
var BoxItems = BoxManager.Components;
for (var BoxIndex = 0
; BoxIndex < BoxItems.Count; BoxIndex++
) {
this.GameReadyEventHandler(data, BoxItems[BoxIndex]);
}
}
开发者ID:MikeHuntington,项目名称:ECS-Numbers,代码行数:9,代码来源:BoxSystem.cs
示例17: DemoPlayerSystemPointerClickFilter
protected void DemoPlayerSystemPointerClickFilter(uFrame.ECS.MouseDownDispatcher data) {
var SourceClickCount = ClickCountManager[data.EntityId];
if (SourceClickCount == null) {
return;
}
if (!SourceClickCount.Enabled) {
return;
}
this.DemoPlayerSystemPointerClickHandler(data, SourceClickCount);
}
开发者ID:InvertGames,项目名称:uFrame.ECS.PlayFab,代码行数:10,代码来源:DemoPlayerSystem.designer.cs
示例18: DisableAllNotificationUIFilter
protected void DisableAllNotificationUIFilter(uFrame.Kernel.GameReadyEvent data) {
var NotificationUIItems = NotificationUIManager.Components;
for (var NotificationUIIndex = 0
; NotificationUIIndex < NotificationUIItems.Count; NotificationUIIndex++
) {
if (!NotificationUIItems[NotificationUIIndex].Enabled) {
continue;
}
this.DisableAllNotificationUIHandler(data, NotificationUIItems[NotificationUIIndex]);
}
}
开发者ID:InvertGames,项目名称:uFrame.ECS.PlayFab,代码行数:11,代码来源:NotificationsUISystem.designer.cs
示例19: InitializeViewModel
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
base.InitializeViewModel(model);
// NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
// var vm = model as TestViewModel;
// This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here.
var testview = ((TestViewModel)model);
testview.Name = this._Name;
testview.IsAmazing = this._IsAmazing;
testview.Complex = this._Complex;
testview.Reference = this._Reference;
testview.SomeUnityType = this._SomeUnityType;
}
开发者ID:grofit,项目名称:uFrame.MVVM.NodeCanvasPlugin,代码行数:12,代码来源:Views.designer.cs
示例20: InitializeViewModel
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
base.InitializeViewModel(model);
//gameOverText = GameObject.Find("Text_GameOver").GetComponent<Text>();
gameOverText.gameObject.SetActive(false);
//TextAsset atkInfo = Resources.Load<TextAsset> ("ATK_Info");
// NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
// var vm = model as MainGameRootViewModel;
// This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here.
InfoText.text = missionInfo.text;
gSHexGridManager = GameObject.Find("HexMapGrid").GetComponent<GSHexGridManager>();
for (int i = 1; i <= 5; i++)
SoldierVM.Add(uFrameKernel.Container.Resolve<SoldierViewModel>("Soldier" + i));
}
开发者ID:marcochiu2-c,项目名称:MainMenu_uFrame1.6,代码行数:16,代码来源:MainGameRootView.cs
注:本文中的uFrame类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论