Untitled

mail@pastecode.io avatar
unknown
plain_text
13 days ago
652 B
1
Indexable
Never
            _clock += Time.deltaTime;
            
            if (_clock < idleTime)
            {
                CharacterIdle();
            }
            else if (_clock < idleTime + moveTime)
            {
                CharacterWalkRight();
            }
            else if (_clock < 2 * idleTime + moveTime)
            {
                CharacterIdle();                    
            } 
            else if (_clock < 2 * moveTime + 2 * idleTime)
            {
                CharacterWalkLeft();
            }
            else
            {
                _clock = 0;
                CharacterIdle();
            }
Leave a Comment