public FBPlayerAgent(FBActor actor, behaviac.Workspace workspace) { this.actor = actor; behaviour = createBehaviour(workspace); LogicEvent.add("onShootBallOut", this, "onShootBallOut"); LogicEvent.add("onPlayTaunt", this, "onPlayTaunt"); }
// Use this for initialization private void Start() { m_skillColorId = Shader.PropertyToID("SkillColor"); LogicEvent.add("lerpSkillColor", this, "lerpSkillColor"); LogicEvent.add("resetSkillColor", this, "resetSkillColor"); }
public void setupFBGame(ulong tableId, uint mapID) { LogicEvent.add("onChangeCampState", this, "onChangeCampState"); frameSync = new FrameSync(); frameSync.addLogicUpdator(this); frameSync.frameSyncEventHandler = this; this.tableId = tableId; fbWorld = new FBWorld(this); fbWorld.randomSeed = 100; var worldConfig = new FBWorld.Configuration(); var btConfig = new FBWorld.BTConfiguration(worldConfig.worldSize); fbWorld.setup(worldConfig, btConfig); matchTimer = Fix64.Zero; ////创建球 createBall(); fbWorld.onGoal += goal; onFBGameCreated(); }
public override void enter() { base.enter(); actor = SceneViews.instance.getCurFBScene().getActor(cameraCtrl.goaler); timer = 0; waitTime = cameraCtrl.config.goalBeginTime;//转身时间 beginGoalShow = false; LogicEvent.add("onBeginGoalShow", this, "onBeginGoalShow"); }
public override void onInit() { base.onInit(); LogicEvent.add("onFBGameCreated", this, "onFBGameCreated"); LogicEvent.add("onFBGameDestroyed", this, "onFBGameDestroyed"); LogicEvent.add("onFBReplayCreated", this, "onFBReplayCreated"); LogicEvent.add("onFBReplayDestroyed", this, "onFBReplayDestroyed"); }
public override void onEnter() { base.onEnter(); LogicEvent.add("onEnableRecordInput", this, "onEnableRecordInput"); #if UNITY_EDITOR LogicEvent.add("onDoorKeeperCatchingBallView", this, "onDoorKeeperCatchingBallView"); LogicEvent.add("onMainCharacterPassingBall", this, "onMainCharacterPassingBall"); #endif }
public override void enter() { base.enter(); LogicEvent.add("onShowEnemy", this, "onShowEnemy"); //jlx 2017.06.22-log:查找Tag为CameraRoot的物体 ModelResourceLoader.inst.loadModel("EnterCameraAnimation", go => { go.transform.localEulerAngles = Vector3.zero; cameraAnimation = go.GetComponent <Animation>(); animationCameraTransform = go.transform.Find("Camera"); }); }
public override void enter() { base.enter(); LogicEvent.add("onOwnerAttached", this, "onOwnerAttached"); LogicEvent.add("onOwnerDetached", this, "onOwnerDetached"); LogicEvent.add("onShootBallBegin", this, "onShootBallBegin"); LogicEvent.add("onShootBallOut", this, "onShootBallOut"); LogicEvent.add("onBallGoal", this, "onBallGoal"); LogicEvent.add("onBallCollidedWall", this, "onBallCollidedWall"); LogicEvent.add("onBallLanded", this, "onBallLanded"); LogicEvent.add("onBeginKillerSkill", this, "onBeginKillerSkill"); LogicEvent.add("onEndKillerSkill", this, "onEndKillerSkill"); LogicEvent.add("onBeginHit", this, "onBeginHit"); LogicEvent.add("onEndHit", this, "onEndHit"); LogicEvent.add("onHitCompleted", this, "onHitCompleted"); cameraCtrl.StartCoroutine(delayEnter()); }
public override void enter() { cameraPosition = cameraCtrl.config.getRandomPosition(cameraCtrl.positionRandomValue); if (cameraPosition == null) { Debug.LogError("cameraPosition is null "); return; } LogicEvent.add("onBallLastDetached", this, "onBallLastDetached"); LogicEvent.add("onBallGoal", this, "onBallGoal"); LogicEvent.add("onOwnerAttached", this, "onOwnerAttached"); LogicEvent.add("onOwnerDetached", this, "onOwnerDetached"); LogicEvent.add("onBeginKillerSkill", this, "onBeginKillerSkill"); LogicEvent.add("onEndKillerSkill", this, "onEndKillerSkill"); cameraCtrl.StartCoroutine(delayEnter(0.1f)); }
void Start() { initLuaBridge(); LogicEvent.add("on_ProtoMsgParse", this, "on_ProtoMsgParse"); LogicEvent.add("on_BinMsgParse", this, "on_BinaryMsgParse"); LogicEvent.add("on_LuaEvent", this, "on_LuaEvent"); Zeus.inst.setRawMsgProc((msgID, msgName, msgBuf) => { var msgInfo = MsgDef.inst.getMsgByID(msgID); if (msgInfo.msgType != MsgType.protobuf) { return; } LogicEvent.fire("on_ProtoMsgParse", msgName, msgBuf); }); }
void Awake() { gameObject.AddComponent <ResourceManager>(); Debuger.SetOutputType(Debuger.OutputType.File); Debuger.SetDebugLevel((int)(Debuger.DebugLevel.Logic)); Game.create(); RealTimeRAProcessCenter.create(); FrameRecording.create(); SceneViews.create(); LogicEvent.add("onFBGameNewed", this, "onFBGameNewed"); LogicEvent.add("onFBGameStart", this, "onFBGameStart"); LogicEvent.add("onFBGameOver", this, "onFBGameOver"); }
void Awake() { config = new CameraConfig(ConfigResourceLoader.inst.loadConfig("Config/camera.xml").ToXml()); cam = GetComponent <Camera>(); cam.fieldOfView = config.defaultFOV; fsm = new CameraFSM(this); fsm.changeState(GameState.Enter); LogicEvent.add("onBeginReplay", this, "onBeginReplay"); if (WithoutEnterShow_4Test_EditorOnly.instance != null) { fsm.changeState(GameState.Gaming); } else { fsm.changeState(GameState.Enter); } LogicEvent.add("onGameReady", this, "onGameReady"); LogicEvent.add("onGameOver", this, "onGameOver"); }
void Awake() { gameObject.AddComponent <Zeus>(); gameObject.AddComponent <ResourceManager>(); RealTimeRAProcessCenter.create(); Game.create(); SceneViews.create(); LogicEvent.add("onWaitForSync", this, "onWaitForSync"); LogicEvent.add("editor_onActorPassBallOut", this, "editor_onActorPassBallOut"); LogicEvent.add("editor_onBallHit", this, "editor_onBallHit"); LogicEvent.add("onFBGameNewed", this, "onFBGameNewed"); LogicEvent.add("onFBGameDestroyed", this, "onFBGameDestroyed"); LogicEvent.add("onFBGameEnter", this, "onFBGameEnter"); LogicEvent.add("onFBGameStart", this, "onFBGameStart"); LogicEvent.add("onFBGameOver", this, "onFBGameOver"); }
void Awake() { Debuger.SetOutputType(Debuger.OutputType.Console); Debuger.SetDebugLevel((int)(Debuger.DebugLevel.Normal | Debuger.DebugLevel.Warning | Debuger.DebugLevel.Error)); Debuger.Open(); Game.create(); RealTimeRAProcessCenter.create(); SceneViews.create(); Profiler.create(); #if !SCENEEDITOR_TOOL LuaProxy.create(); #endif #if FRAME_RECORDING FrameRecording.create(); #endif LogicEvent.add("onWaitForSync", this, "onWaitForSync"); //FBGame刚被创建 LogicEvent.add("onFBGameNewed", this, "onFBGameNewed"); //FBGame被删除 LogicEvent.add("onFBGameDestroyed", this, "onFBGameDestroyed"); //FBGame游戏开始前,比如进场 LogicEvent.add("onFBGameEnter", this, "onFBGameEnter"); //FBGame游戏正式开始 LogicEvent.add("onFBGameStart", this, "onFBGameStart"); //FBGame游戏结束 LogicEvent.add("onFBGameOver", this, "onFBGameOver"); }
public override void onEnter() { base.onEnter(); LogicEvent.add("onTestDrawPosition", this, "onTestDrawPosition"); LogicEvent.add("onSceneLoaded", this, "onSceneLoaded"); }
public GamingState(FBGame game) : base(game) { LogicEvent.add("onPauseTimer", this, "onPauseTimer"); LogicEvent.add("onContinueTimer", this, "onContinueTimer"); }
void Awake() { LogicEvent.add("onTestBinMsg", this, "onTestBinMsg"); LogicEvent.add("onPingActionDone", this, "onPingActionDone"); }