コード例 #1
0
    public virtual void GotKill(IndicatorArrow arrow)
    {
        GotKill();

        arrow.working = false;
        arrow.SetRendering(false);
        usedArrow.Remove(arrow);
        usefulArrow.Add(arrow);
    }
コード例 #2
0
ファイル: Radar.cs プロジェクト: 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;
    }
コード例 #3
0
 void Start()
 {
     arrow = IndicatorArrowFactory.Instance.SpawnArrow(ObjectToIndicate, Title);
 }