Example #1
0
    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();
    }
Example #2
0
 void Start()
 {
     TapManager = GetComponent <TapScript>();
 }
Example #3
0
 void Start()
 {
     TrumpStorage = GameObject.Find("Trumps");
     IceStorage   = GameObject.Find("Ices");
     TpScrpt      = GameObject.Find("Manager").GetComponent <TapScript>();
 }
Example #4
0
 void Start()
 {
     TapScr        = GameObject.Find("Manager").GetComponent <TapScript>();
     UnpausingText = GameObject.Find("UnpauseText").GetComponent <Text>();
     mover         = StartCoroutine(MoveInterface(true, gameObject, GameObject.Find("Text (3)")));
 }