void Awake() { samurai = GameObject.Find("Player"); samuraiMain = samurai.GetComponent<SamuraiMain>(); gamePlay = GameObject.Find("Gameplay"); gameplayScript = gamePlay.GetComponent<GameplayScript>(); }
private Transform trans; //transform komponenta pozadine #endregion Fields #region Methods void Awake() { samurai = GameObject.Find("Player"); samuraiMain = samurai.GetComponent<SamuraiMain>(); mainCameraTrans = mainCamera.GetComponent<Transform>(); trans = GetComponent<Transform>(); sprtRend = GetComponent<SpriteRenderer>(); }
void Awake() { skriptaInsta = GameObject.Find("SkriptaInsta"); bloodInsta = skriptaInsta.GetComponent<BloodInsta>(); gamePlayScriptObject = GameObject.Find("Gameplay"); gamePlayScript = gamePlayScriptObject.GetComponent<GameplayScript>(); anim = GetComponent<Animator>(); myBoxCollider = gameObject.GetComponent<BoxCollider2D>(); myCircleCollider = gameObject.GetComponent<CircleCollider2D>(); samurai = GameObject.Find("Player"); samuraiMain = samurai.GetComponent<SamuraiMain>(); samuraiAnimator = samurai.GetComponent<Animator>(); murderReported = false; }
void Awake() { samuraiMain = GetComponent<SamuraiMain>(); }
void Awake() { samurai = GameObject.Find("Player"); samuraiMain = samurai.GetComponent<SamuraiMain>(); enemyInstTime = Random.Range(enemyInstTimeMin, enemyInstTimeMax); for (int i = 0; i < 7; i++) { stripesRend[i] = stripes[i].GetComponent<Image>(); } for (int i = 0; i < 3; i++) { livesRend[i] = lives[i].GetComponent<Image>(); } extraLifeSprRen = messanges[0].GetComponent<SpriteRenderer>(); score = 0; kills = 0; seconds = 0; minutes = 0; minutesFloat = 0.0f; secondsFloat = 0.0f; }