Ejemplo n.º 1
0
    public override void EnterState(PlayerController_FSM player)
    {
        player.anim.Play("Base Layer.PlayerSittingAnim");
        player.teaAnim.Play("Base Layer.PlayerDrinkingStateAnim");

        //Based on Jistyles. (2014) Coroutine without MonoBehaviour. [online] Unity Answers. Available at: https://answers.unity.com/questions/161084/coroutine-without-monobehaviour.html. [Accessed on: 10th May 2021].
        player.StartingCoroutine(WaitForClip(player, 4.8f));

        //Debug.Log("Enter drinking state");
    }
Ejemplo n.º 2
0
    public override void EnterState(PlayerController_FSM player)
    {
        //player.flowerSprite.color = new Color(1, 1, 1, 1); //Render kiss sprite visible
        player.anim.Play("Base Layer.PlayerMiracleStateAnim");
        player.crowley.SendMessage("Uncomfortable");

        //Based on Jistyles. (2014) Coroutine without MonoBehaviour. [online] Unity Answers. Available at: https://answers.unity.com/questions/161084/coroutine-without-monobehaviour.html. [Accessed on: 10th May 2021].
        player.StartingCoroutine(WaitForClip(player, 3f));

        //Debug.Log("Enter miracle state");
    }