Ejemplo n.º 1
0
 private void InitShapeView(GameShape gameShape, GameShapeController gameShapeController)
 {
     shapeController = gameShapeController;
     shape           = gameShape;
     animator        = gameObject.GetComponent <Animator>();
     animator.speed  = gameShape.SpawnSpeed;
     gameShape.RegisterOnPositionUpdated(OnPositionUpdated);
     gameShape.RegisterOnStateChanged(OnStateChanged);
 }