static void Main(string[] args)
{
string[] array = { "а", "о", "э", "е", "и", "ы", "у", "ё", "ю", "я" };
int vcounter = 0;
string itemStr = Console.ReadLine();
int item = Convert.ToInt32(itemStr);
foreach (var item in array)
{
for(int i = 0; i<array.Leght; i++){
if(тут типа берёшь item == array[i]){
vcounter++;
}
}
Console.WriteLine("Count of vowels: " + vcounter.ToString());
}
}
private Animator _animator;
void Start(){
_animator = GetComponent<Animator>();
}
void Update(){
if(Input.GetKey(KeyCode.E){
_animator.SetTrigger("Raise");
}
}
menuPaused.SetActive(true)
menuPaused.activeSelf // это если тру
!menuPaused.activeSelf // это если false
menuPaused.activeSelf == true
menuPaused.activeSelf == false
joystick = GameObject.FindWithTag("Joystick");
joystick = GetComponent<Joystick>();
int mon = PlayerPrefs.GetInt("Money");
if(mon >= 200){
mon -= 200;
PlayerPrefs.SetInt("Money",mon);
}
PlayerPrefs.Save();
PlayerPrefs.bonusplus("bonusplus", bonusplus);
PlayerPrefs.bonusplus2("bonusplus2", bonusplus2);
PlayerPrefs.bonus("bonus", bonus);
PlayerPrefs.money("money", money);
PlayerPrefs.autoclickbonus21("autoclickbonus2", autoclickbonus2);
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TargetCamera : MonoBehaviour
{
public GameObject Player;
Vector3 pos;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
pos.x = Player.transform.position.x;
pos.y = Player.transform.position.y;
pos.z = Player.transform.position.z;
transform.position = new Vector3(pos.x, pos.y,pos.z);
}
}
сложен ли вообще C#?