Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

27 řádky
436 B

  1. using System;
  2. using UnityEngine;
  3. public class DisableOnPlatform : PlatformActive
  4. {
  5. public void Awake()
  6. {
  7. if (this.DisableOn == base.CurrentPlatform)
  8. {
  9. if (this._destroy)
  10. {
  11. UnityEngine.Object.Destroy(base.gameObject);
  12. }
  13. else
  14. {
  15. base.gameObject.SetActive(false);
  16. }
  17. }
  18. }
  19. [SerializeField]
  20. private PlatformActive.Platform DisableOn;
  21. [SerializeField]
  22. private bool _destroy;
  23. }