public void TriggerReceive(char tTriggerType, Scr_Mechanism_System tSource) { if (!this.enabled) { switch (tTriggerType) { default: if (vPrimaryInput) { Triggered(tSource); } break; case 'S': if (vSecondaryInput) { Triggered(tSource); } break; case 'T': if (vTertiaryInput) { Triggered(tSource); } break; } } }
void Triggered(Scr_Mechanism_System tSource) { GameObject tAmmo; switch (vType) { default: Debug.Log("Out has not been setup for " + this.name); break; case "Projectile": //tAmmo = tSource.RequestAmmo(vAmmoRequirement, vEnergyRequirement, vFuelRequirement); break; } }