示例#1
0
    void Awake()
    {
        if (gameController == null)
        {
            gameController = this;
            DontDestroyOnLoad(this);
        }
        else if (gameController != this)
        {
            Destroy(gameObject);
        }
        player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
        tipoA  = GameObject.FindGameObjectWithTag("TipoA").GetComponent <TipoA>();

        tipoA.onShoot = ShootObjectA;
    }
示例#2
0
 public Silla(int S, int P, string N) : base(S, P, N)
 {
     Tipo = TipoA.Silla;
 }
示例#3
0
 public Cortina(int S, int P, string N) : base(S, P, N)
 {
     Tipo = TipoA.Cortina;
 }
示例#4
0
 public Rueda(int S, int P, string N) : base(S, P, N)
 {
     Tipo = TipoA.Rueda;
 }
示例#5
0
 public Bluetooth(int S, int P, string N) : base(S, P, N)
 {
     Tipo = TipoA.Bluetooth;
 }
示例#6
0
 public Gps(int S, int P, string N) : base(S, P, N)
 {
     Tipo = TipoA.Gps;
 }