Пример #1
0
        public void AddAttAni(AttAni ani)
        {
            if (ani == null)
            {
                return;
            }

            if (_attAnis.IndexOf(ani) >= 0)
            {
                DebugTrace.add(Define.DebugTrace.DTT_ERR, "AddAttAni ani already exist!");
                return;
            }

            _attAnis.Add(ani);

            ani.Start(this.g_mgr.g_netM.CurServerTimeStampMS);
        }
Пример #2
0
        public void AddAttAni(AttAni ani)
        {
            bool flag = ani == null;

            if (!flag)
            {
                bool flag2 = this._attAnis.IndexOf(ani) >= 0;
                if (flag2)
                {
                    DebugTrace.add(Define.DebugTrace.DTT_ERR, "AddAttAni ani already exist!");
                }
                else
                {
                    this._attAnis.Add(ani);
                    ani.Start((float)this.g_mgr.g_netM.CurServerTimeStampMS);
                }
            }
        }