public void PressSmallPicture()
 {
     if (!_PublicVariableHolder.StopAllActions)
     {
         if (m_isBoy)
         {
             GirlActive();
             _GirlMovementScript.SwapGirl();
             _BoyMovementScript.SwapGirl();
         }
         else
         {
             BoySpellActive();
             _BoyMovementScript.SwapBoy();
             _GirlMovementScript.SwapBoy();
         }
     }
 }
예제 #2
0
    public void OnDeselect(BaseEventData eventData)
    {
        if (this.name == "Boy")
        {
            BetterPlayer_Movement movBoy  = this.GetComponent <BetterPlayer_Movement>();
            BetterPlayer_Movement movGirl = this.GetComponent <BetterPlayer_Movement>();

            movBoy.SwapGirl();
            movGirl.SwapGirl();
        }

        if (this.name == "Girl")
        {
            BetterPlayer_Movement movBoy  = this.GetComponent <BetterPlayer_Movement>();
            BetterPlayer_Movement movGirl = this.GetComponent <BetterPlayer_Movement>();

            movBoy.SwapBoy();
            movGirl.SwapBoy();
        }
    }