示例#1
0
 public void ShowScaffolding()
 {
     showingScaffolding             = true;
     scaffolding.transform.position = userTransform.position + Vector3.down * ArcTeleporter.instance.height;
     scaffolding.SetActive(true);
     scaffoldingButton.SetActive(true);
 }
示例#2
0
 public void MyWorkButtonClick()
 {
     if (myWorkFilterActive)
     {
         myWorkFilterActive = false;
         myWorkButton.SetActive(false);
         ClearActiveFilters();
     }
     else
     {
         myWorkButton.SetActive(true);
         ClearActiveFilters();
         currentFilterType = FilterType.ACTIVITY_TYPE;
         foreach (string permittedActivity in Activities.instance.permittedActivities)
         {
             if (!filterSelection.Contains(permittedActivity))
             {
                 Activity activity = Activities.instance.GetActivityByCode(permittedActivity);
                 if (activity != null)
                 {
                     FilterMenu.instance.SelectFilter(activity.activity, activity.name);
                 }
             }
         }
         myWorkFilterActive = true;
     }
 }