//Set asteroid type and scale, according type private void SetAsteroidProperties(EAsteroidType type) { _aType = type; //set scale switch (_aType) { case EAsteroidType.large: transform.localScale = new Vector3(1f, 1f, 1f); break; case EAsteroidType.medium: transform.localScale = new Vector3(0.5f, 0.5f, 0.5f); break; case EAsteroidType.small: transform.localScale = new Vector3(0.25f, 0.25f, 0.25f); break; } }
public Asteroid(StrategyGame game, string imageFilename, int width, int height, int sectorId) : base(game, imageFilename, width, height, sectorId) { Type = EAsteroidType.Generic; }