Beispiel #1
0
 public void RemoveTorsoAsset()
 {
     if (_modelAsset == null)
     {
         return;
     }
     Destroy(_modelAsset.gameObject);
     _modelAsset = null;
 }
Beispiel #2
0
 //---- Public
 //-----------
 public void AttachTorsoAsset(TorsoComponent torsoComponent)
 {
     RemoveTorsoAsset();
     _modelAsset = torsoComponent;
     _modelAsset.transform.SetParent(transform, false);
 }