//private bool playButtonBlock = false; void Awake() { if (latk == null) { latk = GetComponent <LightningArtist>(); } }
private void Awake() { if (!latk) { latk = GetComponent <LightningArtist>(); } if (latk) { if (latkSettings == LatkSettings.COPY_TO_LATK) { latk.brushPrefab = brushPrefab; latk.mainColor = color; latk.brushSize = brushSize; latk.minDistance = minDistance; latk.strokeLife = strokeLife; } else if (latkSettings == LatkSettings.COPY_FROM_LATK) { brushPrefab = latk.brushPrefab; color = latk.mainColor; brushSize = latk.brushSize; minDistance = latk.minDistance; strokeLife = latk.strokeLife; } } updateTransformMatrix(); }
private void Awake() { if (latk == null) { latk = GetComponent <LightningArtist>(); } if (brushInputButtons == null) { brushInputButtons = GetComponent <LatkInputButtons>(); } }