void Start() { TrmpAnimator = GetComponent <Animator>(); // Кеширование компонентов Manager = GameObject.Find("Manager").GetComponent <TapScript>(); GlobalVelocity = Manager.GetComponent <GlobalTrumpVelocityZeroScript>(); FallScript = GameObject.Find("Manager").GetComponent <FallingScript>(); CandidateCollider = GetComponent <BoxCollider2D>(); TrumpsPool = GameObject.Find("Manager").GetComponent <TrumpOPool>(); SpRend = GetComponent <SpriteRenderer>(); Rb2D = GetComponent <Rigidbody2D>(); MusicScrpt = GameObject.Find("MusicBox").GetComponent <SFXScript>(); Storage = GameObject.Find("Trumps"); currentRotateTimer = RotateTimer; // Установка начальных пременных и границ спауна трампов IceKingHighBoard = IceKingSpawnRate; HolyHighBoard = IceKingHighBoard + HolySpawnRate; TimeHighBoard = HolyHighBoard + TimeSpawnRate; GreenHighBoard = TimeHighBoard + GreenSpawnRate; RedHighBoard = GreenHighBoard + RedSpawnRate; Initialization(); }
void Start() { TapManager = GetComponent <TapScript>(); }
void Start() { TrumpStorage = GameObject.Find("Trumps"); IceStorage = GameObject.Find("Ices"); TpScrpt = GameObject.Find("Manager").GetComponent <TapScript>(); }
void Start() { TapScr = GameObject.Find("Manager").GetComponent <TapScript>(); UnpausingText = GameObject.Find("UnpauseText").GetComponent <Text>(); mover = StartCoroutine(MoveInterface(true, gameObject, GameObject.Find("Text (3)"))); }