Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        toFollow = ObjectRefs.Instance.player.transform;
        Bounds CameraBound = Outils.OrthographicBounds(Camera.main);

        GetComponent <BoxCollider2D>().size = CameraBound.size + new Vector3(30, 30, 0);

        miniMap.SetActive(true);
    }