本文整理汇总了C#中uFrame类的典型用法代码示例。如果您正苦于以下问题:C# uFrame类的具体用法?C# uFrame怎么用?C# uFrame使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
uFrame类属于命名空间,在下文中一共展示了uFrame类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
}
示例2: LobbySystemPointerClickFilter
protected void LobbySystemPointerClickFilter(uFrame.ECS.PointerClickDispatcher data) {
var SourceLobbyButton = LobbyButtonManager[data.EntityId];
if (SourceLobbyButton == null) {
return;
}
this.LobbySystemPointerClickHandler(data, SourceLobbyButton);
}
示例3: PhotonSystemOnJoinedRoomFilter
protected void PhotonSystemOnJoinedRoomFilter(uFrame.ECS.OnJoinedRoomDispatcher data) {
var SourceLobbyButton = LobbyButtonManager[data.EntityId];
if (SourceLobbyButton == null) {
return;
}
this.PhotonSystemOnJoinedRoomHandler(data, SourceLobbyButton);
}
示例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);
}
示例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());
}
示例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();
}
示例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());
}
示例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.
}
示例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();
}
示例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;
}
示例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]);
}
}
示例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();
}
示例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();
}
示例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>();
}
示例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();
}