protected EffectManage _effectManager; //特效管理器 #endregion #region MonoBehaviour Callback protected void Awake() { _spericalEffectPool = new GameObjectPool(PlayteEffect, 10); _createEffectPool = new GameObjectPool(CreatePlateEffect, 10); _atEffectPool = new GameObjectPool(AT_Effect, 10); _effectManager = new EffectManage(); }
private void Start() { _effectManager = new EffectManage(); PhotonPeer.RegisterType(typeof(NetData), (byte)'M', SerializeMoveDir, DeserializeMoveDir); Logic = GetComponent <NetGameLogic>(); Global.Instance.MyData.Ready = true; Global.Instance.FindData(Global.Instance.MyData).Ready = true; PhotonNetwork.Instantiate("NetTransform", Vector3.zero, Quaternion.identity); if (PhotonNetwork.IsMasterClient) { photonView.StartCoroutine(WaitForOtherPlayersStart()); } }