private void Select() { isSelected = true; render.color = selectedColor; previousSelected = GetComponent <PadTile>(); Debug.Log(render.sprite.name); if (render.sprite.name == "blue 0") { //Instantiate(padManagers[0], spawnPoint, Quaternion.identity); Debug.Log("Fired!"); } SFXManager.instance.PlaySFX(Clip.Select); mainCamera.GetComponent <CameraShake>().shakecamera(); StartCoroutine(StopShakingCamera()); }
private void Deselect() { isSelected = false; render.color = Color.white; previousSelected = null; }