public void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        sprite = GetComponent <SpriteRenderer>();

        //transform.position = ReticleControl.Instance().transform.position;
        //transform.localScale = ReticleControl.Instance().transform.localScale;

        sprite.sprite = ReticleControl.Instance().GetComponent <SpriteRenderer>().sprite;
        sprite.color  = color;
    }