Esempio n. 1
0
        public override void Initialize()
        {
            //- init
            _currentTarget = null;
            _isMouseDown   = false;
            animController = new PlayerAnimController(animator, camera, settings);
            touchAndRotation.Initialize(settings, camera.transform);
            laserBeam.Initialize();

            //- subscribe to events
            touchAndRotation.onFingerDown += FingerDown;
            touchAndRotation.onFingerUp   += FingerUp;
            touchAndRotation.onMove       += OnMove;
        }