protected virtual void OnAttrChanged(Attr attr, object oldValue, object value) { switch (attr) { case Attr.Scale: this.size = this._data.size * ( float )value; break; } SyncEventHelper.EntityAttrChanged(this.rid, attr, oldValue, value); }
protected virtual void OnAttrChanged(Attr attr, object oldValue, object value) { switch (attr) { case Attr.Scale: this.size = this._data.size * ( float )value; break; } SyncEventHelper.EntityAttrChanged(this.rid, attr, oldValue, value); }