Exemple #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);
                }
 void Awake()
 {
     _destination = GetComponent <Transform>().position;
     _selectionCircleController = GetComponentInChildren <SelectionCircleController>(); // create dependency
 }