void EnemyEntity::setLeft() { AnimatedSprite2D* animatesprite = GetComponent<AnimatedSprite2D>(); animatesprite->SetFlipX(true); vel.x_ = 0.6f; isLeft = true; }
void EnemyEntity::setRight() { AnimatedSprite2D* animatesprite = GetComponent<AnimatedSprite2D>(); animatesprite->SetFlipX(false); isLeft = false; vel.x_ = -0.6f; }