public void Interact() { if (CameraLoc.transform.position == CameraPinLoc.transform.position) { if (ings.Count == 2) { mission.Prompt("Create the potion?", 0); } else { mission.Alert("This isn't much of a potion..."); } } }
void InsertShape(ShapeType shape, Sprite sprite) { if (currentShapeIndex >= 4) { return; } shapeOrder[currentShapeIndex] = shape; AudioManager.audioInstance.Audio.PlayOneShot(AudioManager.audioInstance.Scribble); switch (currentShapeIndex) { case 0: UIShape1.sprite = sprite; UIShape1.color = new Color(1, 1, 1, 1); break; case 1: UIShape2.sprite = sprite; UIShape2.color = new Color(1, 1, 1, 1); break; case 2: UIShape3.sprite = sprite; UIShape3.color = new Color(1, 1, 1, 1); break; case 3: UIShape4.sprite = sprite; UIShape4.color = new Color(1, 1, 1, 1); break; default: break; } if (currentShapeIndex == 1 && shape == ShapeType.Square) { UIShape2.transform.Rotate(0, 0, 45); } currentShapeIndex += 1; if (currentShapeIndex >= 4) { mission.Prompt("Try out this spell?", 1); } }