Esempio n. 1
0
 public void OnActorMeshChanged(GameObject newMesh)
 {
     if (this.meshObject != null)
     {
         Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.meshObject);
     }
     this.meshObject = newMesh;
     this.myRenderer = MMGame_Math.GetSkinnedMeshRendererInChildren(base.gameObject);
     if (this.myRenderer == null)
     {
         this.myRenderer = MMGame_Math.GetMeshRendererInChildren(base.gameObject);
     }
 }