private void HitIndicator() { GameObject obj = gameUI.HitIndicatorPanel; HitIndicator hit = obj.GetComponent <HitIndicator>(); hit.GetHit(); }
public virtual void Awake() { spawnHealth = health; spawnPosition = transform.position; spawnTime = Time.time; spawnSystemTime = System.DateTime.Now.Ticks; spawnCounter = _spawnCounter++; hitIndicator = gameObject.GetComponent <HitIndicator>(); if (hitIndicator == null) { hitIndicator = gameObject.AddComponent <HitIndicator>(); } }
/*public override */ void Awake() { //base.Awake(); health = 5; //spawnHealth = health; terrorVille = transform.parent.parent.GetComponent <TerrorVille>(); hitIndicator = gameObject.AddComponent <HitIndicator>(); BoxCollider colider = gameObject.AddComponent <BoxCollider>(); colider.isTrigger = true; colider.size = new Vector3(colider.size.x * 1.5f, colider.size.y * 2f, colider.size.z * 1.5f); }
public HitIndicator() { Current = this; StyleSheet = StyleSheet.FromFile("/ui/HitIndicator.scss"); }
public HitIndicator() { Current = this; StyleSheet.Load("/ui/HitIndicator.scss"); }