public override void OnInspectorGUI() { DrawDefaultInspector(); LaunchProjectile myScript = (LaunchProjectile)target; if (GUILayout.Button("Launch Projectile")) { myScript.Launch(); } }
public void TriggerAbility() { projectileLauncher.Launch(); }
public override void OnInspectorGUI() { DrawDefaultInspector(); LaunchProjectile myScript = (LaunchProjectile)target; if (GUILayout.Button("Launch Projectile")) { myScript.Launch(); } }
public void TriggerAbility() { projectileLauncher.Launch(); }