예제 #1
0
 void Start()
 {
     if (Application.loadedLevelName == "Juego")
     {
         jugador       = GameObject.Find("triangulo");
         playerControl = jugador.GetComponent <PlayerController> ();
         decoDos       = new DecoradorCoinTwo(playerControl);
         Debug.Log(playerControl.getMonedaDosEstado());
         tiempoAux1SinceLevelLoad = Time.timeSinceLevelLoad;
         playerDecorado           = null;
         playerControl.bala.transform.localScale = new Vector3(2, 2, 2);
     }
 }
예제 #2
0
    public static PlayerController aplicarCoinTwo(PlayerController pl)
    {
        PlayerController pl2 = new DecoradorCoinTwo(pl);

        return(pl2);
    }