Beispiel #1
0
    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());
    }
Beispiel #2
0
 private void Deselect()
 {
     isSelected       = false;
     render.color     = Color.white;
     previousSelected = null;
 }