コード例 #1
0
    public void AddToReadyList()
    {
        if (!CharacterScroller.GetIsDragging() && !selected)
        {
            //Add to the prisoner ready list
            readyList.GetComponent <ReadyList>().AddPrisonerImage(thisPrisonerSprt, prisonerPref);

            //And hide the plus btn on this object to inactivate it
            UnSelectableEffect();
        }
    }
コード例 #2
0
 public void AddToReadyList()
 {
     if (!CharacterScroller.GetIsDragging() && !selected)
     {
         //Add to the prisoner ready list
         readyList.GetComponent <ReadyList>().AddVehicleImage(backImg, frontImg);
         readyList.GetComponent <ReadyList>().SetVehicleWillPlay(vehiclePref);
         //And hide the plus btn on this object to inactivate it
         UnSelectableEffect();
     }
 }