Пример #1
0
 void Start()
 {
     // 状态控制器对象
     controller = new SceneStateController();
     // 设置默认(当前)状态为开始状态,设置默认状态的时候是不需要加载场景的
     controller.SetState(new StartState(controller), false);
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        sceneController = new SceneStateController();
        sceneController.SetState(new StartState(sceneController), false);


        ICharacter ch = new SoldierCaptain();
        //ch.Weapon = new WeaponGun();
        //ch.Attack(Vector3.zero);
    }
Пример #3
0
    public StartScene(SceneStateController controller) : base(controller, "StartScene")
    {
        btn_Player = UITool.GetButton("btn_Play");
        btn_Help   = UITool.GetButton("btn_Help");
        btn_End    = UITool.GetButton("btn_End");
        btn_Back   = UITool.GetButton("btn_Back");


        startPanel = UITool.FindUIGameObject("StartPanel");
        helpPanel  = UITool.FindUIGameObject("HelpPanel");
    }
Пример #4
0
 /// <summary>
 /// 初始化
 /// </summary>
 private void Initialize()
 {
     //管理类单例
     m_manage      = UIManage.Instance;
     m_SceneManage = SceneStateController.Instance;
     //系统
     uiEvent      = new UIEventSystem(this);
     stageSystem  = new StageSystem(this);
     cardManage   = new CardManageSystem(this);
     attackSystem = new AttackSystem(this);
     //其他
     serialize       = new Serialize(this);
     deserialization = Deserialization.Instance;
 }
Пример #5
0
 public CSInertactive cSInertactive;               //客户端服务段交互控制
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(this.gameObject);
         return;
     }
     DontDestroyOnLoad(this.gameObject);
     instance = this;
     //获取客户端服务端交互组件
     gameObject.AddComponent(typeof(CSInertactive));
     cSInertactive = GetComponent <CSInertactive>();
     //初始化场景状态控制器
     sceneStateController = new SceneStateController(this);
     //初始化游戏数据控制器
     gamingDataController = new GamingDataController(this);
     //打开游戏自动进入登陆场景状态
     sceneStateController.SetState(new LoginSceneState(sceneStateController), -1);
 }
Пример #6
0
 public MainState(SceneStateController controller) : base("03MainScene", controller)
 {
 }
Пример #7
0
 public MainMenuState(SceneStateController controller) : base("02MainMenuScene", controller)
 {
 }
Пример #8
0
 // Use this for initialization
 void Start()
 {
     controller = new SceneStateController();
     //设置默认状态
     controller.SetState(new StartSceneState(controller), false);
 }
Пример #9
0
Файл: Test.cs Проект: hlxfx/wb
 public Test(SceneStateController controller) : base("Test", controller)
 {
 }
Пример #10
0
 public LoginSceneState(SceneStateController controller) : base(SCENE_NAME, controller)
 {
 }
Пример #11
0
 public BattleState(SceneStateController controller) : base(controller)
 {
     this.stateName = "BattleState";
     this.sceneName = "GamePlay";
 }
 public BattleState1(SceneStateController Controller) : base(Controller)
 {
     this.StateName = "BattleState1";
 }
Пример #13
0
 public MainState(SceneStateController stateController) : base(stateController)
 {
     this.StateName = "MainScene";
 }
 public BattleState(SceneStateController controller) : base("03BattleScene", controller)
 {
 }
Пример #15
0
 public EndState(SceneStateController controller) : base("03EndScene", controller)
 {
 }
Пример #16
0
	public StartState(SceneStateController Controller):base(Controller)
	{
		this.StateName = "StartState";
	}
Пример #17
0
	public BattleState(SceneStateController Controller):base(Controller)
	{
		this.StateName = "BattleState";
	}
Пример #18
0
	// 建構者
	public ISceneState(SceneStateController Controller)
	{ 
		m_Controller = Controller; 
	}
Пример #19
0
 public GameObject UITool;    //sssss
 public MainMenuState(SceneStateController Controller) : base(Controller)
 {
     StateName = "MainMenuState";
 }
Пример #20
0
 public StartState(SceneStateController Controller) : base(Controller)
 {
     StateName = "StartState";
 }
Пример #21
0
        private GameMainProgram gameMainProgram;//主程序

        public BattleEyeball(SceneStateController controller) : base(controller)
        {
            this.StateName = "BattleEyeball";
        }
Пример #22
0
 public MainMenuState(SceneStateController ctrl) : base("02MainMenuScene", ctrl)
 {
 }
Пример #23
0
 public StartSceneState(SceneStateController controller) : base(SCENE_NAME, controller)
 {
 }
Пример #24
0
        private GameMainProgram gameMainProgram;//主程序

        public BattleStrongKnight(SceneStateController controller) : base(controller)
        {
            this.StateName = "BattleDungeon";
        }
Пример #25
0
 public GameResetScene(SceneStateController controller) : base(controller, "GameResetScene")
 {
 }
Пример #26
0
 private void Start()
 {
     controller = new SceneStateController();
     SetState(new StartState(controller), false);
 }
Пример #27
0
 public StartState(SceneStateController controller) : base(controller)
 {
     stateName = "StartState";
     sceneName = "StartScene";
 }
Пример #28
0
 public StartState(SceneStateController controller) : base("01_Start", controller)
 {
     controller.isLoadScene = false;
 }
Пример #29
0
 public StartState(SceneStateController controller) : base("01-Begin", controller)
 {
 }
Пример #30
0
 public SceneState(string sceneName, SceneStateController controller)
 {
     mSceneName  = sceneName;
     mController = controller;
 }
Пример #31
0
 public ISceneState(string stateName, SceneStateController controller)
 {
     mSceneName  = stateName;
     mController = controller;
 } //构造函数
 public BattleSceneState(SceneStateController controller) : base(SCENE_NAME, controller)
 {
 }
Пример #33
0
        private GameMainProgram gameMainProgram;    //主程序

        public VillageScene(SceneStateController controller) : base(controller)
        {
            this.StateName = "Village";
        }
Пример #34
0
	public MainMenuState(SceneStateController Controller):base(Controller)
	{
		this.StateName = "MainMenuState";
	}