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