public Guitarist AddGuitarist() { var guitarist = new Guitarist(); guitarist.GO = Instantiate(Resources.Load("Prefabs/Guitarist")) as GameObject; guitarist.sprite = costumes.GetRandomCostume(); guitarist.Stance = Guitarist.SpriteStance.CHAT; guitarists.Add(guitarist); return(guitarist); }
public void StartSoloMeter(Guitarist guit, float time) { soloGuitarist = guit; guitarImage.sprite = guit.Guitar; currentTime = 0f; playTime = time; soloKey = guit.Name[0].ToString().ToLower(); goodTime = (100f - GameManager.Instance.goodRiffThreshold) / 100f; hasPressed = false; isSoloTime = true; }