public void Init(Direction bd, float speed, bool moving, ObstacleType obstacleType = ObstacleType.Null) { if (bc == null) { Start(); } blockDirection = bd; bc.Init(blockDirection); bm.Init(speed, moving); RotateSprite(bd); if (wrongHit) { wrongHit = false; ChangeColorBack(); } if (!arrowTransform.gameObject.activeSelf) { arrowTransform.gameObject.SetActive(true); } this.obstacleType = obstacleType; CheckObstacleType(); }