Esempio n. 1
0
                public SelectionCircle(SelectionCircleController controller, SelectionCircleSettings settings)
                {
                    this.controller = controller;
                    this.settings   = settings;

                    circleProjector          = GameObjectPool.Take(controller.selectionCirclePrototype);
                    circleProjector.material = Instantiate(circleProjector.material);
                    circleProjector.gameObject.SetActive(false);
                }
Esempio n. 2
0
 void Awake()
 {
     _destination = GetComponent <Transform>().position;
     _selectionCircleController = GetComponentInChildren <SelectionCircleController>(); // create dependency
 }