private TypeOfObject createObject(string _Name, ObjectBehaviourType _Type, GAFInternal.Data.GAFObjectData _Data) { var bakedObject = new TypeOfObject(); bakedObject.initialize(_Name, _Type, clip, this, _Data); return(bakedObject); }
private TypeOfObject createObject(string _Name, ObjectBehaviourType _Type, GAFInternal.Data.GAFObjectData _Data) { var gameObj = new GameObject { name = _Name }; gameObj.transform.parent = this.transform; gameObj.transform.localScale = Vector3.one; gameObj.transform.localPosition = Vector3.zero; var component = gameObj.AddComponent <TypeOfObject>(); var gafTransform = component.GetComponent <GAFTransform>(); gafTransform.gafParent = clip.gafTransform; component.initialize(_Name, _Type, clip, this, _Data); //if (_Data.type == Data.GAFObjectType.Timeline) //{ // m_Timelines.Add(gafTransform); //} return(component); }