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ů.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.

18 řádky
328B

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. class ActionToggleVisibility : Action
  5. {
  6. public ActionToggleVisibility()
  7. : base()
  8. {
  9. }
  10. public override void start()
  11. {
  12. base.start();
  13. target.gameObject.renderer.enabled = !target.gameObject.renderer.enabled;
  14. }
  15. }