void Start() { gearType = "Magma"; triggleEnable = true; createMagmaTimer = uint.MaxValue; disbaleMagmaTimer = uint.MaxValue; disbaleMagmaTimer = TimerHeap.AddTimer((uint)nextMagmaRemainTime, 0, SetDisable); gear = GetComponent <MagmaGear>(); TryCreateNewMagma(); }
void Start() { gearType = "Magma"; triggleEnable = true; createMagmaTimer = uint.MaxValue; disbaleMagmaTimer = uint.MaxValue; disbaleMagmaTimer = TimerHeap.AddTimer((uint)nextMagmaRemainTime, 0, SetDisable); gear = GetComponent<MagmaGear>(); TryCreateNewMagma(); }
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(); }
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(); }