public void AddMechanism(ForcePlatform pl) { if (!mechanism.Contains(pl)) { mechanism.Add(pl); } Check(); }
public void DeleteMechanism(ForcePlatform pl) { if (mechanism.Contains(pl)) { mechanism.Remove(pl); } Check(); }
private void Start() { link = GetComponentInParent <ForcePlatform>(); }