Пример #1
0
        /// <summary>Add a behavior to the object</summary>
        /// <description>
        ///
        /// </description>
        /// <param name="bi">The behavior instance to add</param>
        /// <returns>(bool success) Whether or not the behavior was successfully added</returns>
        public bool AddComponent(Component comp)
        {
            InternalUnsafeMethods.AddComponent__Args _args = new InternalUnsafeMethods.AddComponent__Args()
            {
                comp = comp.ObjectPtr,
            };
            bool _engineResult = InternalUnsafeMethods.AddComponent()(ObjectPtr, _args);

            return(_engineResult);
        }