Exemplo n.º 1
0
 public override void SetState(livestate s)
 {
     base.SetState(s);
     if (s == livestate.Dead)
     {
         OnKilled();
     }
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public virtual void SetState(livestate s)
 {
     stateLive = s;
 }