ActionTool.GPActionUtils.CreateGPActionObject C# (CSharp) Method

CreateGPActionObject() public static method

Creates a default GPActionObject if not existing. Returns the created GameObject or the existing GPActionObject
public static CreateGPActionObject ( GameObject parentObj ) : GameObject
parentObj GameObject
return GameObject
        public static GameObject CreateGPActionObject(GameObject parentObj)
        {
            GameObject gpaObj = GetGPActionObject(parentObj);

            if (gpaObj != null)
                return gpaObj;

            gpaObj = new GameObject(c_ActionObjectName);

            InitGPActionObject(parentObj, gpaObj);

            return gpaObj;
        }