碰碰车新框架
2017-08-01 16:24:04 0 举报
的速度撒撒多撒多多撒多撒多撒神挡杀神多
作者其他创作
大纲/内容
TortoiseShellBuff:BaseBuff
JellyFish:Creature
道具生成器
网络信息配置解析类
场景物体基类
ShieldBuff:BaseBuff
== == == == == == == == == == == == == == == ==== == == == == == == == == == == == == == == ==== == == == == == ==
NetWorkConfig
激光buff
故事管理器
PlayerManager:NetworkBehaviour
===============同步变量===============private SyncListUInt syncIdList = new SyncListUInt();===============普通变量===============private List playerList
Creature
CreatureType type;
== == == 资源== == ==
场景管理器
小凉帽
== == == ==Buff== == == ==
TortoiseShellItem:BaseItem
SawArms:EmitterObject
LaserItem:BaseItem
初始化驱动器
生物管理器
散弹发射器
激光道具
服务器UI
画布管理器
CarAnimation : MonoBehaviour
public AudioClip weaponAudio;private Animation selfAnimation;
MonoSingleton
故事基类
护盾buff
计时器基类
TipsPanel
== == == ==生物== == == ==
Player:NetworkBehaviour
public VRCamera SelfVRCamera; //眼睛
public virtual void SyncGameState()public virtual void StartMatch()public virtual void StopMatch()
LittleSummerHat:Creature
炸弹buff
PowerItem:BaseItem
== == == == ==== == == == == == == == == == == == 玩家 == == == == ==== == == == ==== == == == == == == == == == == == == == == ==
数据中心
== == == == ==== == == == ==== == == == ==道具== == == == ==== == == == ==== == == == ==
激光发射器
Timer
protected uint id; //id标示protected float length; //计时长度protected Action callBack; //回调protected UnityEvent unityEvent; //unity事件protected float startTime; //开始时间protected bool isEnd; //是否结束了
RandomPickOutsidePlayers:MonoSingleton
发射器基类
Story : MonoBehaviour
[SerializeField]private StoryId id; [SerializeField]protected List clipGroup; 剪辑组[SerializeField]protected List audioGroup; 音频组[SerializeField]protected List cameraGroup; 摄像组[SerializeField]protected List actorGroup; 演员组[SerializeField]protected List itemGroup; 道具组
不销毁
GameConfig
//操作员,屏幕画圈进入账号系统登录即可 开启权限
道具管理器
== == == ==工具== == == ==
游戏配置文件解析类
提示界面
开始故事
UserUI
BaseSceneObject:NetworkBehaviour
车的动画
GameManager:NetworkBehaviour
=======客户端逻辑========public override void OnStartClient() // [Client]private void ClientGetGameState() //客户端获得游戏状态
游戏管理器(负责游戏开始结束)
ShotgunEmitter:EmitterObject
电锯道具
== == == ==== == == ==声音== == == ==== == == ==
buff基类
VRCamera : MonoBehaviour
EventCode
public const uint PowerRefresh = 10010; //积分刷新public const uint ListenPlayer = 10011; //监听玩家加入和退出
扩展工具
随机点工具
============同步变量============[SyncVar(hook = \"HookCarName\")]private string syncCarName; //车辆名字[SyncVar(hook = \"HookSpaceId\")]private int syncSpaceId; //空间定位的id[SyncVar(hook = \"HookPower\")]private float syncPower; //车辆积分[SyncVar(hook = \"HookPosition\")]private Vector3 syncPosition; //同步的位置[SyncVar(hook = \"HookQuaternion\")]private Quaternion syncRotation; //同步的旋转============普通变量============public CarAnimation SelfAnimation; //自身动画public CarUI SelfUI; //车的UIpublic bool canEatItem = true; //能否吃东西public bool canBeAttacked = true; //能否被攻击(吃到护盾就不能被攻击)private float lerpPosSpeed = 20; //同步位置速率 private float lerpRotSpeed = 15; //private Vector3 realPosition = Vector3.zero; //真实位置
StartStory : Story
protected override void Enter()public void StartStroy(bool isTimerEnd)public override void Finish()protected override void Exit()
天女散花道具
SawItem:BaseItem
CreatureType
观察者(继承:玩家基类)
== == ==场景 == == ==
== == == ==故事== == == ==
== == == == == == == == == == == == UI == == == == == == == == == == == == == == == ==
ServerPanel
声音管理器
SawBuff:BaseBuff
DataCenter
护盾道具
玩家管理器
Observer:Player
ObserverPanel
NetWorkManager
客家四宝buff
网络消息框架(重写覆盖需要网络消息)
是否需要选择界面
电锯手臂
游戏信息
网络管理器(原生)
LaserEmitter:EmitterObject
导弹发射器
网络声音管理器
== == == ==== == == ==计时器== == == ==== == == ==
CarUI
间隔计时器
玩家基类
ShieldItem:BaseItem
EmitterObject:BaseSceneObject
NetMessageFrame:NetworkBehaviour
===========客户端逻辑==========public override void OnStartClient() //覆盖重写networkmanager的连接消息和断开连接消息private void OnClientConnect(NetworkMessage netMsg) //连接消息回调private void OnClientDisconnect(NetworkMessage netMsg) //断开连接消息回调private IEnumerator DisconnectedReconnection() //断线重连
===========服务端逻辑==========public override void OnStartServer() //覆盖重写networkmanager的断开连接消息private void OnServerDisconnect(NetworkMessage netMsg) //当有客户端断开时的回调消息
CanvasManager:MonoSingleton
void Init()public void OpenPlane(string name)public void ClosePlane(string name)public bool IsOpen(string name)public T GetPlane(string name)
空间定位工具
独角兽
BaseBuff:BaseSceneObject
ChangMapPanel
资源管理器
Unicorn:Creature
观察者UI
UserInfo
TimerManager:MonoSingleton
private List runtime = new List(); //运行时计时器private List end = new List(); //结束计时器
Engine:MonoBehaviour
StoryManager : MonoSingleton
public void Trigger(int id)public Story GetStroy(int id)public void StopAllStory()
== == == == == ==网络== == == == ==
计时器帮助
IntervalTimer:Timer
protected float intervalTime; //间隔时间protected float lastTime; //最后的时间protected Action paramterCallBack; //带参数回调
public override bool Tick()
生物基类
VR摄像机
TimerHelper
private static uint curTimerId = 0; //当前计时器的id
public static uint AllocationID
LaserBuff:BaseBuff
电锯buff
道具基类
用户信息
客家四宝道具
ListenScene:MonoBehaviour
碰碰车UI
计时管理器
繁殖管理器
BaseItem:BaseSceneObject
EventManager:MonoSingleton
事件管理器
BombBuff:BaseBuff
SceneManager:NetworkBehaviour
============客户端逻辑============ public override void OnStartClient() //覆盖注册场景改变消息private void OnClientSceneChanged(NetworkMessage netMsg) //客户端场景改变回调
============服务器逻辑============public override void OnStartServer()[ClientRpc]public void RpcSyncScene(string map) //同步场景public void LoadScene(string map) //加载场景
生物类型
龟壳道具
ShotgunItem:BaseItem
SpaceTrackerTools
public static Vector3 GetPosition(int trackerId)public static Quaternion GetQutation(int trackerId)public static string GetIp()
BombItem:BaseItem
散弹buff
车声音
DoNotDestroy
TreasureBuff:BaseBuff
HoverBiological:Creature
SpawnManager:MonoSingleton
单例工具
SoundManager:MonoSingleton
结束故事
== == == ==事件== == == ==
ExtendTools
ItemManager:MonoSingleton
private List itemList;
NetworkSoundManager:NetworkBehaviour
积分道具
换地图界面
车类玩家(继承:玩家基类)
CreatureManager
private List CreatureList ;
public void Spawn(CreatureType type)
水母
龟壳buff
配置文件界面
导弹道具
GameInfo
ResourcesManager:静态
protected override void Enter()public override void Finish()protected override void Exit()
事件常量
ShotgunBuff:BaseBuff
场景监听
悬浮生物
BombDevice:EmitterObject
ConfigPanel
FourTreasuresItem:BaseItem
CarSound:NetworkBehaviour
GenerateManager:MonoSingleton
0 条评论
下一页