Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

27 righe
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. }