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(); }
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> (); }
public void Marian_Idle() { marian.Idle(); }
public void Zina_Idle() { zina.Idle(); }