public override void OnBinding(Agent agent) { this.agent = agent; type = SensorType.sint; currentEnergy = maxEnergy; if (actionPath != null) { foreach (NodePath path in actionPath) { Actuator a = (GetNode(path) as Actuator); a.Subscribe(this); } } }