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