You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
543 B
C#
31 lines
543 B
C#
using Duality;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BasicMenu
|
|
{
|
|
public class MenuSwitchToPage : MenuComponent
|
|
{
|
|
private MenuPage target;
|
|
|
|
public MenuPage Target
|
|
{
|
|
get { return this.target; }
|
|
set { this.target = value; }
|
|
}
|
|
|
|
public override void DoAction()
|
|
{
|
|
base.DoAction();
|
|
MenuController mc = this.GameObj.ParentScene.FindComponent<MenuController>();
|
|
if (mc != null)
|
|
{
|
|
mc.SwitchToMenu(this.target);
|
|
}
|
|
}
|
|
}
|
|
}
|