Exemplo n.º 1
0
        private void Start()
        {
            gameManager = GetComponentInParent <MinigameManager>();

            points       = newPoints();
            targetPoints = newTargetPoints();

            lastA                = A;
            targetPosition       = points[0];
            targetTargetPosition = targetPoints[0];

            ObjectToMove.transform.position = targetPosition;
            Target.transform.position       = targetTargetPosition;

            gameManager.DartEvents.OnShoot     += HandleShoot;
            gameManager.DartEvents.OnDartReset += HandleReset;
        }