예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (shipController != null)
        {
            Vector2 mouseAxis = shipController.GetRotationAxis();

            MoveCursor(mouseAxis.x, mouseAxis.y);

            SetSpeedBar();
            SetLifeBar();
            SetShieldBar();
            ScopeCloseEnouhtToEnabeleAutomatedShoot();
        }



        SetLineTarget();
        SetLineRotation();
        //if (stateShip.targetLocked != null)
        //{
        //	SetLinePosition();
        //}

        DisplaySpeedInText();
        //Debug.DrawRay(shipController.transform.position, GetCursorRay().direction * 1000, Color.red);
    }