Пример #1
0
 private void Start()
 {
     if (!LevelSettings.IsLastLevel(GameplayManager.CurrentLevelID) && GameplayManager.CurrentLevelID.Type != LevelType.FreePlay)
     {
         group.alpha          = 1f;
         group.blocksRaycasts = true;
         button.onClick.AddListener(GameplayManager.PlayNextLevel);
     }
     else
     {
         group.alpha          = 0.3f;
         group.blocksRaycasts = false;
     }
 }