public virtual void GotKill(IndicatorArrow arrow) { GotKill(); arrow.working = false; arrow.SetRendering(false); usedArrow.Remove(arrow); usefulArrow.Add(arrow); }
void OnTriggerEnter2D(Collider2D other) { IndicatorArrow arrowClone = Instantiate(arrow, new Vector3(parent.transform.position.x, parent.transform.position.y, arrow.transform.position.z), arrow.transform.rotation) as IndicatorArrow; arrowClone.transform.parent = parent.transform; arrowClone.target = other.gameObject; arrowClone.fromPos = parent; // arrowClone.rotate(); arrowClone.maxRange = range; arrows[other.GetInstanceID()] = arrowClone; }
void Start() { arrow = IndicatorArrowFactory.Instance.SpawnArrow(ObjectToIndicate, Title); }