示例#1
0
 public void Start()
 {
     if (newMaterial != null)
     {
         CreationReferences references = GetComponent <CreationReferences>();
         if (references && references.creator)
         {
             amm = references.creator.GetComponent <ActorModelManager>();
             if (amm && amm.body)
             {
                 oldMaterial       = amm.body.material;
                 amm.body.material = newMaterial;
             }
         }
     }
 }
 public void Start()
 {
     if (creationReferencesObject)
     {
         CreationReferences references     = creationReferencesObject.GetComponent <CreationReferences>();
         ParticleSystem     particleSystem = GetComponent <ParticleSystem>();
         if (references && references.creator && particleSystem)
         {
             ActorModelManager amm = references.creator.GetComponent <ActorModelManager>();
             if (amm)
             {
                 amm.applyParticlesToBody(particleSystem);
             }
         }
     }
 }