Exemplo n.º 1
0
 public void Awake()
 {
     if (_l == null)
     {
         DontDestroyOnLoad(gameObject);
         _l = this;
         setLevel(0);
     }
     else if (_l != this)
     {
         Destroy(_l);
     }
 }
 set => SetProperty(ref _level, value);
Exemplo n.º 3
0
 set => this.RaiseAndSetIfChanged(ref _level, value);