public void SetGunAsMachineGun() { projectileLauncher.SetTypeDefinition(ProjectileLauncherFactory.GetLauncherTypeDefinition(ProjectileLauncherType.MachineGun)); GetComponent <SpriteRenderer>().sprite = redSprite; }