Пример #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;
     }
 }
Пример #2
0
 public override string ToString()
 {
     return(string.Concat(Position.ToString(), ' ', FaceDirection.ToString().Substring(0, 1)));
 }