コード例 #1
0
 /// <summary>
 /// Stop this action
 /// </summary>
 /// <param name="om">The OldMan's object</param>
 public virtual void StopAction(OldMan om)
 {
     Active = false;
     if (thoughtItem != null)
     {
         om.EndThought();
     }
 }
コード例 #2
0
    /// <summary>
    /// Start this action
    /// </summary>
    /// <param name="om">The OldMan object</param>
    public virtual void StartAction(OldMan om)
    {
        Active = true;
        Fresh  = false;

        //Set the correct thought bubble status
        if (thoughtItem != null)
        {
            om.thoughtItem.sprite = thoughtItem;
            om.StartThought();
        }
        else
        {
            om.EndThought();
        }
    }