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í.

ActionToggleVisibility.cs 292B

před 10 roky
před 10 roky
123456789101112131415161718
  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. renderer.enabled = !renderer.enabled;
  14. }
  15. }