/// <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)); }
/// <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); }