Exemplo n.º 1
0
 /* This can be overriden to make the object face a certain direction */
 public virtual void MakeSpriteFace(FaceDirection dir)
 {
     if (!hasTriggeredMakeSpriteFaceWarning)
     {
         Debug.LogWarning("FaceDirection: " + dir.ToString() + " called, but " + gameObject.ToString() + " has not implemented this method.");
         hasTriggeredMakeSpriteFaceWarning = true;
     }
 }
Exemplo n.º 2
0
 public override string ToString()
 {
     return(string.Concat(Position.ToString(), ' ', FaceDirection.ToString().Substring(0, 1)));
 }