コード例 #1
0
        public static FlockingBehaviour CreateBehaviour_Flocking()
        {
            FlockingBehaviour f = FlockingBehaviour.CreateFlockingBehaviour();

            MiscEditorHelpers.SaveScriptableObjectAtCurrentFolder <FlockingBehaviour>(f, "NewFlockingBehaviour");
            return(f);
        }
コード例 #2
0
        /// <summary>
        /// Called from menu when creating a new flocking scriptable asset
        /// </summary>
        /// <returns></returns>
        public static FlockingBehaviour CreateFlockingBehaviour()
        {
            FlockingBehaviour fb = ScriptableObject.CreateInstance <FlockingBehaviour>();

            return(fb);
        }