Exemple #1
0
 /// <summary>Инициализация значения переменной <seealso cref="messageToPlayer"/></summary>
 private void InitMessageToPlayer()
 {
     if (messageToPlayer == null)
     {
         messageToPlayer = SecondaryFunctions.GetMessageToPlayer()?.GetComponent <Text>();
     }
 }
        void Start()
        {
            crosshairImage        = GetComponent <Image>();
            crosshairImage.sprite = defaultCrosshair;
            screenCenter          = SecondaryFunctions.GetScreenCenter();
            cameraPlayer          = SecondaryFunctions.GetCameraPlayer();

            StartCoroutine(CheckCrosshair());
        }