/// <summary> /// Called by Unity. /// Allows the <see cref="ReplayBehaviour"/> to validate its identity and register its self with the replay system. /// </summary> public virtual void Awake() { ReplayIdentity.RegisterIdentity(replayIdentity); // Generate the unique id if required - This is requried for objects instantiated during replay //replayIdentity.Generate(); // Find all replay variables and cache them ReplayFindVariables(); }
// Methods /// <summary> /// Called by Unity. /// </summary> public void Awake() { ReplayIdentity.RegisterIdentity(replayIdentity); // Check if we need to generate an id //replayIdentity.Generate(); }