private void AddPad(PressurePad pad) { if (_pads.ContainsKey(pad.GetInstanceID())) { return; } _pads.Add(pad.GetInstanceID(), pad); pad.AddObjectOnPad(gameObject); }
public void RemovePadOnBlock(PressurePad pad) { _pads.Remove(pad.GetInstanceID()); }
public void RemovePad(PressurePad pad) { _pads.Remove(pad.GetInstanceID()); pad.RemoveObjectOnPad(gameObject); }