public void Emote(Face.Emotion emotion) { CancelInvoke("DoNextEmote"); if (emotion == Face.Emotion.Default) { ResetBrows(); ChangeMouth(mouthDefault); } if (emotion == Face.Emotion.Angry) { RotateBrows(-20f, 20f); MoveBrows(-0.75f, -0.75f); ChangeMouth(mouthAngry); } if (emotion == Face.Emotion.Happy) { RotateBrows(5f, -5f); MoveBrows(0.25f, 0.25f); ChangeMouth(mouthHappy, new Vector3(1.25f, 1.5f, 1f), new Vector3(0, -0.5f, 0f)); } if (emotion == Face.Emotion.Shocked) { RotateBrows(3f, -3f); MoveBrows(0.5f, 0.5f); ChangeMouth(mouthOpen, new Vector3(1.25f, 1.25f, 1f), new Vector3(0, -0.25f, 0f)); } if (emotion == Face.Emotion.Sad) { RotateBrows(25f, -25f); MoveBrows(0.25f, 0.25f); ChangeMouth(mouthSad); } if (emotion == Face.Emotion.Sneaky) { browDir = -browDir; RotateBrows(-10f, 10f); MoveBrows(browDir, -browDir); ChangeMouth(mouthHappy, new Vector3(0.8f, 1f, 1f), new Vector3(0.5f * Random.Range(-1f, 1f), -0.2f, 0f)); } if (emotion == Face.Emotion.Brag) { RaiseBrows(); Invoke("ResetBrows", 0.15f); Invoke("RaiseBrows", 0.35f); Invoke("ResetBrows", 0.5f); nextEmotion = Emotion.Default; Invoke("DoNextEmote", 1f); ChangeMouth(mouthHappy, new Vector3(1.3f, 1.1f, 1f), new Vector3(0, 0.1f, 0f)); } }
public void EveryoneEmote(Face.Emotion emotion) { if (treeFirst) { treeFirst.ChainEmote(emotion); } stack.AllEmote(emotion); }
public void AllEmote(Face.Emotion emotion) { foreach (Card c in cards) { if (c) { c.face.Emote(emotion); } } }
public void ChainEmote(Face.Emotion emotion) { face.Emote(emotion); if (leftLink) { leftLink.ChainEmote(emotion); } if (rightLink) { rightLink.ChainEmote(emotion); } }
public void Emote(Face.Emotion emotion, Face.Emotion next, float delay) { nextEmotion = next; Emote(emotion); Invoke("DoNextEmote", delay); }