private void OnMouseEnter() { if (seqPad == null) { seqPad = GetComponentInParent <SequencerPad>(); } return; }
private void OnMouseDown() { // Check mouse isn't over UI if (!EventSystem.current.IsPointerOverGameObject()) { if (seqPad == null) { seqPad = GetComponentInParent <SequencerPad>(); } if (!BlockSpawnManager.BrushMode) { if (seqPad != null) { if (!GameOfLife.MousePaintMode) { seqPad.SpawnBlock(); } } } } }
private void Awake() { seqPad = GetComponentInParent <SequencerPad>(); }