void Start() { //benim değiştirmem replayPlayer = FindObjectOfType <ReplayPlayer>(); replayPlayer.Add(this); frames = new List <Frame>(); maxFrame = replayPlayer.maxFrame; }
void Start() { if (player == null) { player = FindObjectOfType <ReplayPlayer>(); } if (player) { player.Add(this); maxLength = player.maxLength; frames = new List <Frame>(); } }