Ejemplo n.º 1
0
    IEnumerator CheckRestPosition()
    {
        yield return(new WaitForSeconds(1.0f));

        if (this.GetComponent <Rigidbody2D>().IsSleeping() && _moverStriker.isStrikerHit && _moverStriker.isStrikerSet)
        {
            ResetStriker();
            if (!_gameLogicManager.GetIsPlayerScored())
            {
                _gameLogicManager.ChangeTurn();
            }
            else
            {
                _gameLogicManager.SetIsPlayerScored(false);
            }
        }
    }