コード例 #1
0
        /// <summary>
        /// Loads the behaviour from file.
        /// </summary>
        /// <returns>The behaviour from file.</returns>
        /// <param name="behaviour">Behaviour.</param>
        public static BehaviourObject LoadBehaviourFromFile(BehaviourObject _object)
        {
            m_Path = Load("cc_behaviours");
            if (m_Path.Length == 0)
            {
                return(_object);
            }

            return(LoadObjectFromFile <BehaviourObject>(_object));
        }
コード例 #2
0
        /// <summary>
        /// Saves the behaviour to file.
        /// </summary>
        /// <param name="status">Status.</param>
        public static void SaveBehaviourToFile(BehaviourObject _object, string owner)
        {
            m_Path = Save(owner, "cc_behaviours");
            if (m_Path.Length == 0)
            {
                return;
            }

            SaveObjectToFile <BehaviourObject>(_object);
        }