public SGun (ContraEntity entity) { this.entity = entity; bulletPrefab = Resources.Load ("Bullet") as GameObject; bulletCount = 0; timeBetweenSteps = 0.5f; numMaxBullets = 1; }
public FGun (ContraEntity entity) : base(entity) { this.entity = entity; bulletPrefab = Resources.Load ("FireballBullet") as GameObject; bulletCount = 0; timeBetweenSteps = 0.9f; numMaxBullets = 4; }
public FGun(ContraEntity entity) : base(entity) { this.entity = entity; bulletPrefab = Resources.Load("FireballBullet") as GameObject; bulletCount = 0; timeBetweenSteps = 0.9f; numMaxBullets = 4; }
public MGun(ContraEntity entity) { this.entity = entity; bulletPrefab = Resources.Load("Bullet") as GameObject; bulletCount = 0; timeBetweenSteps = 0.3f; numMaxBullets = 1; }
void OnTriggerEnter2D(Collider2D other) { if (other != null && other.tag != null && !safeTags.Contains(other.tag) && other.tag != this.ownerTag) { ContraEntity entity = other.gameObject.GetComponent <ContraEntity>(); entity.Damage(damageVal); } }
// Use this for initialization void Start () { RenderersOff (); this.entity = this.transform.parent.gameObject.GetComponent<ContraEntity> (); L = new Vector2(-1,0).normalized; R = new Vector2(1,0).normalized; TL = new Vector2(-1,1).normalized; TR = new Vector2(1,1).normalized; BL = new Vector2(-1,-1).normalized; BR = new Vector2(1,-1).normalized; U = new Vector2(0,1).normalized; D = new Vector2(0,-1).normalized; }
// Use this for initialization void Start() { RenderersOff(); this.entity = this.transform.parent.gameObject.GetComponent <ContraEntity> (); L = new Vector2(-1, 0).normalized; R = new Vector2(1, 0).normalized; TL = new Vector2(-1, 1).normalized; TR = new Vector2(1, 1).normalized; BL = new Vector2(-1, -1).normalized; BR = new Vector2(1, -1).normalized; U = new Vector2(0, 1).normalized; D = new Vector2(0, -1).normalized; }
protected void OnTriggerExit2D(Collider2D other) { if (other.tag == "Bullet") { Bullet bullet = other.gameObject.GetComponent <Bullet>(); Destroy(bullet.gameObject); } else { ContraEntity entity = other.gameObject.GetComponent <ContraEntity>(); if (entity != null) { entity.Damage(dam); } } }
public SniperController (ContraEntity entity) : base(entity) { bill = GameObject.FindGameObjectWithTag ("BillRizer"); angleBoundary = 15f; }
public WallTurretController(ContraEntity entity) : base(entity) { angleBoundary = 30f; }
public Controller(ContraEntity entity) { this.entity = entity; }
public CannonController (ContraEntity entity) : base(entity) { angleBoundary = 45f; }
public CamoSniperController (ContraEntity entity) : base(entity) { bill = GameObject.FindGameObjectWithTag ("BillRizer"); }
public CamoSniperController(ContraEntity entity) : base(entity) { bill = GameObject.FindGameObjectWithTag("BillRizer"); }
void Awake () { parentEntity = this.transform.parent.gameObject.GetComponent<ContraEntity> (); }
public CannonController(ContraEntity entity) : base(entity) { angleBoundary = 45f; }
public Controller (ContraEntity entity) { this.entity = entity; }
public WallTurretController (ContraEntity entity) : base(entity) { angleBoundary = 30f; }
public BillController (ContraEntity entity) : base(entity) { bill = entity as Bill; }
public BillController(ContraEntity entity) : base(entity) { bill = entity as Bill; }
void Awake() { parentEntity = this.transform.parent.gameObject.GetComponent <ContraEntity> (); }
public SniperController(ContraEntity entity) : base(entity) { bill = GameObject.FindGameObjectWithTag("BillRizer"); angleBoundary = 15f; }