void Awake() { replayInvoker = new ReplayInvoker(gameObject.name, transform); ReplaySystem.FrameHandler += ReplaySwitch; }
void Awake() { animator = gameObject.GetComponent <Animator>(); replayInvoker = new ReplayInvoker(gameObject.name, animator); ReplaySystem.FrameHandler += ReplaySwitch; }