Exemplo n.º 1
0
        public static FlockingBehaviour CreateBehaviour_Flocking()
        {
            FlockingBehaviour f = FlockingBehaviour.CreateFlockingBehaviour();

            MiscEditorHelpers.SaveScriptableObjectAtCurrentFolder <FlockingBehaviour>(f, "NewFlockingBehaviour");
            return(f);
        }
        /// <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);
        }