Exemplo n.º 1
0
    public virtual void GotKill(IndicatorArrow arrow)
    {
        GotKill();

        arrow.working = false;
        arrow.SetRendering(false);
        usedArrow.Remove(arrow);
        usefulArrow.Add(arrow);
    }
Exemplo n.º 2
0
Arquivo: Radar.cs Projeto: lwsn/SPACE
    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;
    }
Exemplo n.º 3
0
 void Start()
 {
     arrow = IndicatorArrowFactory.Instance.SpawnArrow(ObjectToIndicate, Title);
 }