/* 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; } }
public override string ToString() { return(string.Concat(Position.ToString(), ' ', FaceDirection.ToString().Substring(0, 1))); }