ItemComponent GUIFrames, functional steering, radar, separate power and signals, improved d.gz, tweak swimming

This commit is contained in:
Regalis
2015-06-29 23:51:01 +03:00
parent 004608acd8
commit b493ed2b39
42 changed files with 473 additions and 182 deletions
+2 -3
View File
@@ -641,8 +641,7 @@ namespace Subsurface
}
}
public void SendSignal(string signal, string connectionName, Item ignoredReceiver = null)
public void SendSignal(string signal, string connectionName, float power=0.0f)
{
ConnectionPanel panel = GetComponent<ConnectionPanel>();
if (panel == null) return;
@@ -650,7 +649,7 @@ namespace Subsurface
{
if (c.name != connectionName) continue;
c.SendSignal(signal, this);
c.SendSignal(signal, this, power);
}
}