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; }
public Silla(int S, int P, string N) : base(S, P, N) { Tipo = TipoA.Silla; }
public Cortina(int S, int P, string N) : base(S, P, N) { Tipo = TipoA.Cortina; }
public Rueda(int S, int P, string N) : base(S, P, N) { Tipo = TipoA.Rueda; }
public Bluetooth(int S, int P, string N) : base(S, P, N) { Tipo = TipoA.Bluetooth; }
public Gps(int S, int P, string N) : base(S, P, N) { Tipo = TipoA.Gps; }