Esempio n. 1
0
    void Start()
    {
        gearType      = "Magma";
        triggleEnable = true;

        createMagmaTimer  = uint.MaxValue;
        disbaleMagmaTimer = uint.MaxValue;

        disbaleMagmaTimer = TimerHeap.AddTimer((uint)nextMagmaRemainTime, 0, SetDisable);

        gear = GetComponent <MagmaGear>();

        TryCreateNewMagma();
    }
Esempio n. 2
0
    void Start()
    {
        gearType = "Magma";
        triggleEnable = true;

        createMagmaTimer = uint.MaxValue;
        disbaleMagmaTimer = uint.MaxValue;

        disbaleMagmaTimer = TimerHeap.AddTimer((uint)nextMagmaRemainTime, 0, SetDisable);

        gear = GetComponent<MagmaGear>();

        TryCreateNewMagma();
    }
Esempio n. 3
0
    void Start()
    {
        gearType = "ForeverMagma";
        enable   = true;

        createMagmaTimer = uint.MaxValue;

        if (gameObject.GetComponent <Collider>() == null)
        {
            var boxCollider = gameObject.AddComponent <BoxCollider>();
            boxCollider.isTrigger = true;
            boxCollider.size      = new Vector3(2, 2, 2);
        }

        gear = GetComponent <MagmaGear>();

        TryCreateNewMagma();
    }
Esempio n. 4
0
    void Start()
    {
        gearType = "ForeverMagma";
        enable = true;

        createMagmaTimer = uint.MaxValue;

        if (gameObject.GetComponent<Collider>() == null)
        {
            var boxCollider = gameObject.AddComponent<BoxCollider>();
            boxCollider.isTrigger = true;
            boxCollider.size = new Vector3(2, 2, 2);
        }

        gear = GetComponent<MagmaGear>();

        TryCreateNewMagma();
    }