Example #1
0
    void Awake()
    {
        if (Instance != null)
        {
            Destroy(Instance.gameObject);
        }

        Instance = this;
    }
Example #2
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();
        }
    }
 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();
     }
 }