public override void SetState(livestate s) { base.SetState(s); if (s == livestate.Dead) { OnKilled(); } }
public override void DoParseLoad(ref BinaryReader r) { pos = vector.DeSerialize(ref r); velocity = vector.DeSerialize(ref r); health = r.ReadByte(); stateLive = (livestate)r.ReadInt32(); angle = r.ReadSingle(); }
public virtual void SetState(livestate s) { stateLive = s; }