Пример #1
0
 public virtual void SetReferences()
 {
     view          = GetComponent <SelectableView> ();
     selectionMngr = FindObjectOfType <SelectionMngr> ();
     mov           = GetComponent <Movable> ();
     att           = GetComponentInChildren <Attackable> ();
     aggPA         = GetComponentInChildren <AggressivePlayerAttack> ();
     aggAA         = GetComponentInChildren <AggressiveAutoAttack> ();
 }
Пример #2
0
        //======================================================================

        void Awake()
        {
            // Configure input.
            Input.simulateMouseWithTouches = false;
            Input.backButtonLeavesApp      = true;
            //Cache components
            _cam     = Camera.main;
            _camDrag = GetComponent <CamDragMngr> ();
            _selMngr = GetComponent <SelectionMngr> ();
        }