playMaker

Author Topic: Editing Wiki?  (Read 2361 times)

Zyxil

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Editing Wiki?
« on: August 27, 2012, 07:56:41 PM »
I don't see a way to log in to edit the wiki.  

I was going to add this simple action:

Code: [Select]
using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
    [ActionCategory(ActionCategory.GameObject)]
    [Tooltip("Destroy all children on the Game Object.")]
    public class DestroyChildren : FsmStateAction
    {
        [RequiredField]
        public FsmOwnerDefault gameObject;

        public override void Reset()
        {
            gameObject = null;
        }

        public override void OnEnter()
        {
            DoDestroyChildren(Fsm.GetOwnerDefaultTarget(gameObject));

            Finish();
        }

        static void DoDestroyChildren(GameObject go)
        {
            if (go != null)
            {
                for (int i = 0; i < go.transform.GetChildCount(); i++)
                    GameObject.Destroy(go.transform.GetChild(0).gameObject);
            }
        }
    }
}
« Last Edit: August 28, 2012, 07:00:00 PM by Zyxil »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Editing Wiki?
« Reply #1 on: August 28, 2012, 12:08:01 AM »
Hi,

 If you want to start editing the wiki, you should contact playmaker directly. In your case, I would suggest you post it to the share new action section:

http://hutonggames.com/playmakerforum/index.php?board=19.0

bye,

 Jean

Zyxil

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: Editing Wiki?
« Reply #2 on: August 28, 2012, 06:41:36 PM »
posted in forum.

thanks, jean.