You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

18 lines
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. }