protected void Awake()
 {
     item          = this.GetComponent <Item>();
     module        = item.data.GetModule <Shared.ProjectileModule>();
     bladeMaterial = Catalog.GetData <MaterialData>("Blade", true);
     fleshMaterial = Catalog.GetData <MaterialData>("Flesh", true);
 }
Ejemplo n.º 2
0
 protected void Awake()
 {
     item   = this.GetComponent <Item>();
     module = item.data.GetModule <Shared.ProjectileModule>();
     if (!string.IsNullOrEmpty(module.shellMeshRef))
     {
         meshObject = item.GetCustomReference(module.shellMeshRef).gameObject;
     }
     if (!string.IsNullOrEmpty(module.particleEffectRef))
     {
         explosiveEffect = item.GetCustomReference(module.particleEffectRef).GetComponent <ParticleSystem>();
     }
     if (!string.IsNullOrEmpty(module.soundRef))
     {
         explosiveSound = item.GetCustomReference(module.soundRef).GetComponent <AudioSource>();
     }
 }
 protected void Awake()
 {
     item   = this.GetComponent <Item>();
     module = item.data.GetModule <Shared.ProjectileModule>();
 }