Example #1
0
 void Start()
 {
     Pool    = GameObject.Find("Manager").GetComponent <TrumpOPool>();
     Rb2d    = GetComponent <Rigidbody2D>();
     IceAnim = GetComponent <Animator>();
     Initialization();
 }
Example #2
0
 void Start()
 {
     TrumpsPool = GetComponent <TrumpOPool>();
     // VelocityChangePerTick = Mathf.Abs(TargetVelocity - StartVelocity) / (TargetTime * 60*TickRate);
     VelocityChangePerTick = 1 / (TargetTime * 60 * TickRate);
     currentDifTimer       = TickRate;
     Timer = StartVelocity;
 }
Example #3
0
 void Start()
 {
     // TextComp = GameObject.Find("Text").GetComponent<Text>();
     txt1       = GameObject.Find("Text (1)").GetComponent <Text>();
     txt2       = GameObject.Find("Text (2)").GetComponent <Text>();
     txt3       = GameObject.Find("Text (3)").GetComponent <Text>();
     TrumpsPool = GetComponent <TrumpOPool>();
 }
Example #4
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 #5
0
 void Start()
 {
     TrumpsPool = GameObject.Find("Manager").GetComponent <TrumpOPool>();
 }