// Update is called once per frame void Update() { frame = frame++ % 1000000000000000000; if (frame == 0 && Ground != null) { Ground.AffectToCharacter(this); string states = ""; foreach (CharacterState s in CharacterStates) { states += s.ToString(); } Debug.Log("Player State: " + states); } CatchPlayerInput(); }