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> (); }
void SetOnReal(CharacterAnimations character, CharacterExpressions.states state) { Reset(); character.gameObject.SetActive(true); character.GetComponent <CharacterExpressions> ().SetOn(state); }