Ejemplo n.º 1
0
    void OnCharacterStopWalking()
    {
        if (state == states.CHANGING_LEVEL)
        {
            return;
        }
        if (selectedInteractiveObject != null)
        {
            if (state == states.OPENING_FRUIT_NINJA)
            {
                LookAtTarget(selectedInteractiveObject.transform.gameObject);
                Data.Instance.userData.SaveLastPosition();
                Events.OpenFruitNinja(selectedInteractiveObject);
            }
        }

        selectedInteractiveObject = null;
        if (state == states.ENTERING_DOOR)
        {
            Data.Instance.userData.SaveLastPosition();
            StartCoroutine(EnterMinigame());
            return;
        }

        anim.Idle();
    }
Ejemplo n.º 2
0
 void Start()
 {
     characterAnimations = Instantiate(characterAnim_to_instantiate);
     characterAnimations.transform.SetParent(container);
     characterAnimations.transform.localEulerAngles = Vector3.zero;
     characterAnimations.transform.localPosition    = Vector3.zero;
     characterAnimations.Idle();
     characterExpressions = characterAnimations.GetComponent <CharacterExpressions> ();
 }
Ejemplo n.º 3
0
 public void Marian_Idle()
 {
     marian.Idle();
 }
Ejemplo n.º 4
0
 public void Zina_Idle()
 {
     zina.Idle();
 }