public void Spawn()
 {
     _rb                 = GetComponent <Rigidbody>();
     _rb.velocity        = Vector3.zero;
     _rb.angularVelocity = Vector3.zero;
     _model              = (Model)Random.Range(0, System.Enum.GetValues(typeof(Model)).Length);
     ChangeModel(_model);
     SetOutlineVisible(false);
     _owner = CharacterAnimator.GetRandomNPC();
     _npc.SetCharacter(_owner);
     _npc.Hide();
 }
Exemple #2
0
 public void SetCharacter(CharacterAnimator.CharacterSelection character)
 {
     _anim.SetCharacter(character);
 }