Example #1
0
    public void OnEnter(FSMContext context)
    {
        _camera  = context.GetVariable("Camera") as Camera;
        _carrier = context.GetVariable("Carrier") as GameObject;
        var avatar = BattleProcedure.CurSession.Field.FindUnit(BattleProcedure.CurSession.CurSelectUid);
        var curPos = CameraManager.Instance.CameraCarrier.transform.position;

        CameraManager.Instance.SetCameraRotation(new Vector3(90, 0, 0), true);
        CameraManager.Instance.SetCameraFocusPosition(new Vector2(avatar.transform.position.x, avatar.transform.position.y), true);
    }
Example #2
0
 public void OnEnter(FSMContext context)
 {
     _performRoot = context.GetVariable("PerformRoot") as LuaTable;
     BattleProcedure.CurSession.Performer.Perform(_performRoot);
 }